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

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.

主站蜘蛛池模板: 耒阳市| 卓尼县| 邢台县| 迁安市| 神农架林区| 赫章县| 资溪县| 华蓥市| 南开区| 青阳县| 习水县| 迭部县| 大连市| 耒阳市| 乐至县| 老河口市| 彭山县| 望谟县| 沙洋县| 南郑县| 巍山| 斗六市| 郓城县| 太谷县| 桃江县| 高淳县| 平原县| 绩溪县| 柯坪县| 惠东县| 息烽县| 九江县| 霍林郭勒市| 临澧县| 白沙| 双辽市| 安顺市| 棋牌| 新巴尔虎右旗| 萍乡市| 彰化县|