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;
|
|
|
|
|
|
2007-09-26 11:53:41 +00:00
|
|
|
|
using OpenTK.Input;
|
|
|
|
|
|
2007-07-23 00:15:18 +00:00
|
|
|
|
namespace OpenTK.Platform
|
|
|
|
|
{
|
2007-08-05 13:42:31 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// This interface supports OpenTK, and is not intended for use by OpenTK programs.
|
|
|
|
|
/// </summary>
|
2007-10-15 11:11:38 +00:00
|
|
|
|
interface INativeGLWindow : IResizable, IDisposable
|
2007-07-23 00:15:18 +00:00
|
|
|
|
{
|
2008-01-23 14:17:09 +00:00
|
|
|
|
void CreateWindow(int width, int height, DisplayMode mode, out IGLContext context);
|
2007-08-06 11:22:18 +00:00
|
|
|
|
void DestroyWindow();
|
2007-07-23 00:15:18 +00:00
|
|
|
|
void ProcessEvents();
|
2008-01-06 02:25:33 +00:00
|
|
|
|
void PointToClient(ref System.Drawing.Point p);
|
|
|
|
|
void PointToScreen(ref System.Drawing.Point p);
|
2007-07-23 00:15:18 +00:00
|
|
|
|
|
2007-08-06 09:22:04 +00:00
|
|
|
|
bool Exists { get; }
|
2007-08-05 13:42:31 +00:00
|
|
|
|
IWindowInfo WindowInfo { get; }
|
2007-08-06 11:22:18 +00:00
|
|
|
|
|
2007-09-26 11:53:41 +00:00
|
|
|
|
string Title { get; set; }
|
|
|
|
|
bool Visible { get; set; }
|
2007-10-15 11:11:38 +00:00
|
|
|
|
bool IsIdle { get; }
|
2007-12-09 18:15:51 +00:00
|
|
|
|
//IGLContext Context { get; }
|
2007-11-10 18:24:30 +00:00
|
|
|
|
IInputDriver InputDriver { get; }
|
2007-09-26 11:53:41 +00:00
|
|
|
|
|
2007-08-06 11:22:18 +00:00
|
|
|
|
event CreateEvent Create;
|
|
|
|
|
event DestroyEvent Destroy;
|
2007-07-23 00:15:18 +00:00
|
|
|
|
}
|
2007-08-06 11:22:18 +00:00
|
|
|
|
|
|
|
|
|
public delegate void CreateEvent(object sender, EventArgs e);
|
|
|
|
|
public delegate void DestroyEvent(object sender, EventArgs e);
|
2007-07-23 00:15:18 +00:00
|
|
|
|
}
|