Ejemplo n.º 1
0
        /// <summary>
        /// Used internally, Do NOT override. Use Setup instead.
        /// </summary>
        protected override void Initialize()
        {
            Graphics.Initialize();
            base.Initialize();

            Graphics.GraphicsDevice.DepthStencilState = Graphics.DepthStencilStateEnabled;
        }
Ejemplo n.º 2
0
        /// <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;
        }