public FlatRedBallGameBase(FlatRedBallControl frbControl) { this._frbControl = frbControl; // Get the starting size of the control and start listening // to its Resize events. _windowHandle = frbControl.Handle; RenderWidth = (Int32) frbControl.RenderSize.Width; RenderHeight = (Int32) frbControl.RenderSize.Height; frbControl.SizeChanged += XnaControlOnSizeChanged; // Create the graphics device manager and set the delegate for initializing the graphics device Graphics = new GraphicsDeviceManager(this); Graphics.PreferMultiSampling = true; Graphics.SynchronizeWithVerticalRetrace = true; Graphics.PreparingDeviceSettings += PreparingDeviceSettings; StartInitialization(); Content.RootDirectory = "Content"; }
public FlatRedBallGameBase(FlatRedBallControl frbControl) { this._frbControl = frbControl; // Get the starting size of the control and start listening // to its Resize events. _windowHandle = frbControl.Handle; RenderWidth = (Int32)frbControl.RenderSize.Width; RenderHeight = (Int32)frbControl.RenderSize.Height; frbControl.SizeChanged += XnaControlOnSizeChanged; // Create the graphics device manager and set the delegate for initializing the graphics device Graphics = new GraphicsDeviceManager(this); Graphics.PreferMultiSampling = true; Graphics.SynchronizeWithVerticalRetrace = true; Graphics.PreparingDeviceSettings += PreparingDeviceSettings; StartInitialization(); Content.RootDirectory = "Content"; }
public MainGame(FlatRedBallControl frbControl) : base(frbControl) { }