Opentk/Source/OpenTK/Platform/INativeGLWindow.cs
the_fiddler 0133eb1222 Corrected critical bug in X11/API.cs: VisualInfo.visualid was int where it should have been IntPtr, causing incorrect visuals to be created on 64bit platforms.
Removed the OnCreate/OnDestroy methods from INativeGLWindow.
Added convenience overloads to OpenTK.OpenGL.GL: Color3 and Color4 can now take a System.Drawing.Color directly.
2007-08-21 09:01:24 +00:00

35 lines
948 B
C#

#region --- License ---
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
* See license.txt for license info
*/
#endregion
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenTK.Platform
{
/// <summary>
/// This interface supports OpenTK, and is not intended for use by OpenTK programs.
/// </summary>
interface INativeGLWindow : IGLControl, IResizable
{
void CreateWindow(DisplayMode mode);
void DestroyWindow();
void ProcessEvents();
//void OnCreate(EventArgs e);
//void OnDestroy(EventArgs e);
bool Exists { get; }
//bool IsExiting { get; }
IWindowInfo WindowInfo { get; }
event CreateEvent Create;
event DestroyEvent Destroy;
}
public delegate void CreateEvent(object sender, EventArgs e);
public delegate void DestroyEvent(object sender, EventArgs e);
}