/// <summary> /// /// </summary> public FrmMain() { InitializeComponent(); this.Location = new Point(); // Initialize API-Dependent stuff mRenderer = new RendererGDI(); mInput = new InputGDI(); mSound = new SoundBase(); Game.LoadContents(); Game.GameOver += Game_GameOver; mRenderer.SetGameWindow(Game.DefaultGameWidth, Game.DefaultGameHeight, this.doubleBufferPanel1.ClientRectangle.Width, this.doubleBufferPanel1.ClientRectangle.Height); }
/// <summary> /// /// </summary> public RendererBase() { Ref = this; }