/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { Forms.MainForm mainForm = new Forms.MainForm(); mainForm.Show(); using (DevKit game = new DevKit(mainForm)) { game.Run(); } }
public DevKit(MainForm mainForm) { this.mainForm = mainForm; graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = DEFAULT_SCREEN_WIDTH; graphics.PreferredBackBufferHeight = DEFAULT_SCREEN_HEIGHT; graphics.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings); Content.RootDirectory = "Content"; }