protected override void OnResize(EventArgs e) { base.OnResize(e); MakeCurrent(); SetupProjection(); keys.RenderFrame(); }
protected override void OnRenderFrame(FrameEventArgs e) { base.OnRenderFrame(e); MakeCurrent(); if (ContextRenderingApi == EAGLRenderingAPI.OpenGLES2 || ContextRenderingApi == EAGLRenderingAPI.OpenGLES3) { keys.RenderFrame(); } SwapBuffers(); }
// 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(); }