using System; using System.Collections.Generic; using System.Text; namespace OpenTK.Platform { interface IGameWindow : INativeGLWindow { void Run(); void OnRenderFrame(EventArgs e); void OnUpdateFrame(EventArgs e); void OnLoad(EventArgs e); event UpdateFrameEvent UpdateFrame; event RenderFrameEvent RenderFrame; event LoadEvent Load; bool IsExiting { get; } IList Keyboard { get; } } public delegate void UpdateFrameEvent(object sender, EventArgs e); public delegate void RenderFrameEvent(object sender, EventArgs e); public delegate void LoadEvent(object sender, EventArgs e); }