protected override void OnRenderFrame(FrameEventArgs e) { base.OnRenderFrame(e); GL.Clear(ClearBufferMask.ColorBufferBit); GL.ClearColor(TackRenderer.BackgroundColour.ConvertToOpenGLColor4()); onGUIRenderFunction(); // This function should be called after all rendering. This means gui will render above other objects mTackConsole.OnGUIRender(); // TackConsole should be rendered above everything else, including the onGUIRenderFunction // All OnRender here mTackRender.OnRender(); TackEngine.mFramesPerSecond = (int)RenderFrequency; Internal_RenderCycleCounter++; this.SwapBuffers(); }