Пример #1
0
        protected override void OnLoad(EventArgs e)
        {
            VSync = VSyncMode.On;

            CreateShaders();
            // Other state
            GL.Enable(EnableCap.DepthTest);
            GL.ClearColor(System.Drawing.Color.Black);

            ResetCamera();
            // called upon app init
            GL.Hint(HintTarget.PerspectiveCorrectionHint, HintMode.Nicest);
            ClientSize    = new Size(1024, 1024);
            Location      = new Point(300, 0);
            game          = new Game();
            game.screen   = new Surface(Width, Height);
            Sprite.target = game.screen;
            screenID      = game.screen.GenTexture();
            game.Init();
            Game.printInstructions();
        }