protected override void OnRenderFrame(FrameEventArgs e) { base.OnRenderFrame(e); GL.Viewport(0, 0, ScreenWidth, ScreenHeight); GL.ClearBuffer(ClearBuffer.Color, 0, new float[] { 0.2f, 0.2f, 0.2f, 1.0f }); GL.ClearBuffer(ClearBuffer.Depth, 0, new float[] { 1.0f }); Title = KAOSEngine.AppName + " OpenGL: " + GL.GetString(StringName.Version) + " GLSL: " + GL.GetString(StringName.ShadingLanguageVersion) + " FPS: " + string.Format("{0:F}", 1.0 / e.Time); RenderFrame(m_Timer.GetElapsedTime()); SwapBuffers(); }