/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public SphereDrawer(Game1 game) { Game = game; }
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); }