示例#1
0
文件: Program.cs 项目: slicedpan/demo
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
示例#2
0
 public SphereDrawer(Game1 game)
 {
     Game = game;
 }
示例#3
0
文件: Game1.cs 项目: slicedpan/demo
 public Game1()
 {
     IsFixedTimeStep = false;
     graphics = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferHeight = scrheight;
     graphics.PreferredBackBufferWidth = scrwidth;
     graphics.SynchronizeWithVerticalRetrace = false;
     graphics.PreferredBackBufferFormat = SurfaceFormat.Color;
     graphics.PreferredDepthStencilFormat = DepthFormat.Depth24Stencil8;
     graphics.IsFullScreen = false;
     Content.RootDirectory = "Content";
     _game1 = this;
     rand = new Random();
     SphereDrawer = new SphereDrawer(this);
     kbBuffer = new KeyboardBuffer(this.Window.Handle);
 }