2007-08-10 11:27:13 +02:00
|
|
|
|
#region --- License ---
|
|
|
|
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
|
|
|
|
* See license.txt for license info
|
|
|
|
|
*/
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
2007-07-23 02:15:18 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OpenTK.Platform
|
|
|
|
|
{
|
2007-08-05 15:42:31 +02:00
|
|
|
|
interface IGameWindow : INativeGLWindow
|
2007-07-23 02:15:18 +02:00
|
|
|
|
{
|
|
|
|
|
void Run();
|
|
|
|
|
|
2007-08-06 13:22:18 +02:00
|
|
|
|
void OnRenderFrame(EventArgs e);
|
|
|
|
|
void OnUpdateFrame(EventArgs e);
|
|
|
|
|
void OnLoad(EventArgs e);
|
2007-08-10 18:55:24 +02:00
|
|
|
|
void Exit();
|
2007-07-23 02:15:18 +02:00
|
|
|
|
|
2007-08-04 14:09:58 +02:00
|
|
|
|
event UpdateFrameEvent UpdateFrame;
|
|
|
|
|
event RenderFrameEvent RenderFrame;
|
2007-08-06 13:22:18 +02:00
|
|
|
|
event LoadEvent Load;
|
2007-08-06 11:22:04 +02:00
|
|
|
|
|
|
|
|
|
bool IsExiting { get; }
|
|
|
|
|
IList<OpenTK.Input.Keyboard> Keyboard { get; }
|
2007-07-23 02:15:18 +02:00
|
|
|
|
}
|
|
|
|
|
|
2007-08-06 13:22:18 +02:00
|
|
|
|
public delegate void UpdateFrameEvent(object sender, EventArgs e);
|
|
|
|
|
public delegate void RenderFrameEvent(object sender, EventArgs e);
|
|
|
|
|
public delegate void LoadEvent(object sender, EventArgs e);
|
2007-07-23 02:15:18 +02:00
|
|
|
|
}
|