예제 #1
0
 protected override void OnResize(EventArgs e)
 {
     base.OnResize(e);
     MakeCurrent();
     SetupProjection();
     keys.RenderFrame();
 }
예제 #2
0
        protected override void OnRenderFrame(FrameEventArgs e)
        {
            base.OnRenderFrame(e);

            MakeCurrent();
            if (ContextRenderingApi == EAGLRenderingAPI.OpenGLES2 || ContextRenderingApi == EAGLRenderingAPI.OpenGLES3)
            {
                keys.RenderFrame();
            }
            SwapBuffers();
        }
예제 #3
0
 // This gets called on each frame render
 protected override void OnRenderFrame(FrameEventArgs e)
 {
     // you only need to call this if you have delegates
     // registered that you want to have called
     base.OnRenderFrame(e);
     if (setViewport)
     {
         setViewport = false;
         GL.Viewport(0, 0, Width, Height);
     }
     keys.RenderFrame();
     SwapBuffers();
 }