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