Beispiel #1
0
        private void RenderHandler(object sender, FrameEventArgs e)
        {
            GL.Clear(ClearBufferMask.ColorBufferBit |
                     ClearBufferMask.StencilBufferBit
                     | ClearBufferMask.DepthBufferBit);
            var lookAtMatrix = Matrix4.LookAt(Eye, CameraAt, Up);

            GL.MatrixMode(MatrixMode.Modelview);
            GL.LoadMatrix(ref lookAtMatrix);
            DrawObjectsByStage();
            Context.SwapBuffers();
        }