4ceea208ac
WinRawInput now correctly subclasses WinGLNative or WinGLControl. WinRawKeyboard now correctly responds to events. Removed T10_GLSL_Cube.cs which was erroneously moved outside the Examples/Tutorial directory. Updated INativeWindow, IGameWindow and IGLControl interfaces. Updated examples to use the new GameWindow interface. Added documentation to GameWindow. Improved GameWindow error handling. More defensive programming.
21 lines
460 B
C#
21 lines
460 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
|
|
namespace OpenTK.Platform
|
|
{
|
|
interface IGameWindow : INativeWindow
|
|
{
|
|
void Run();
|
|
|
|
void OnRenderFrame();
|
|
void OnUpdateFrame();
|
|
|
|
event UpdateFrameEvent UpdateFrame;
|
|
event RenderFrameEvent RenderFrame;
|
|
}
|
|
|
|
public delegate void UpdateFrameEvent(EventArgs e);
|
|
public delegate void RenderFrameEvent(EventArgs e);
|
|
}
|