Beispiel #1
0
        // Settings, load textures, sounds
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            VSync = VSyncMode.On;
            GL.Viewport(0, 0, Width, Height);

            lastMousePos = new Vector2();
            camera       = new Camera(Width, Height);

            camera.Position = new Vector3(0, 10, 20);

            spritebatch      = new Spritebatch(camera);
            grid             = new Grid(Color.White);
            quadHandler      = new QuadHandler();
            sierpinskiCarpet = new SierpinskiCarpet(12);
        }