小编gok*_*kul的帖子

c#xna编程spritebatch错误

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Project
{
    /// <summary>
    /// This is the main type for your game
    /// </summary>
    public class Game1 : Microsoft.Xna.Framework.Game
    {
        GraphicsDeviceManager graphics;
       SpriteBatch spriteBatch;
        Texture2D myTexture;
        Rectangle myRectangle;

        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
        }

        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This …
Run Code Online (Sandbox Code Playgroud)

c# xna visual-studio-2010 xna-4.0

1
推荐指数
1
解决办法
207
查看次数

标签 统计

c# ×1

visual-studio-2010 ×1

xna ×1

xna-4.0 ×1