官术网_书友最值得收藏!

Member variables

Just after the Game1 class declaration in the Game1.cs file there are two class member declarations:

GraphicsDeviceManager graphics;
SpriteBatch spriteBatch; 

These two members will provide access to the system's video hardware (graphics) and an instance of a class that can be used to draw 2D images and text (spriteBatch). We can add our own member variables here for things we need to keep track of while our game is running.

主站蜘蛛池模板: 金山区| 吉首市| 科技| 思南县| 柞水县| 运城市| 江川县| 桓台县| 三门县| 马公市| 长宁区| 崇信县| 田阳县| 蒙阴县| 阜平县| 武汉市| 土默特左旗| 灵台县| 金乡县| 靖宇县| 镇远县| 玉林市| 启东市| 和硕县| 长汀县| 栾城县| 新乡县| 海晏县| 长乐市| 陆川县| 黔江区| 万盛区| 衢州市| 宁安市| 通州市| 土默特左旗| 额尔古纳市| 二连浩特市| 铁岭县| 通化县| 敖汉旗|