/// <summary> /// Used internally, Do NOT override. Use Setup instead. /// </summary> protected override void Initialize() { Graphics.Initialize(); base.Initialize(); Graphics.GraphicsDevice.DepthStencilState = Graphics.DepthStencilStateEnabled; }
/// <summary> /// Used internally, Do NOT override. Use Setup instead. /// </summary> protected override void Initialize() { Graphics.Initialize(); base.Initialize(); #if WINDOWS WindowForm = Form.FromHandle(Window.Handle) as Form; if (WindowForm != null) { WindowForm.FormClosing += OnClose; } #endif Graphics.GraphicsDevice.DepthStencilState = Graphics.DepthStencilStateEnabled; }