#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 { public interface IGLContext : IDisposable { /// /// Swaps buffers on a context. This presents the rendered scene to the user. /// void SwapBuffers(); /// /// Makes this context the current rendering target. /// void MakeCurrent(); /// /// Gets the address of an OpenGL extension function. /// /// The name of the OpenGL function (e.g. "glGetString") /// /// A pointer to the specified function or IntPtr.Zero if the function isn't /// available in the current opengl context. /// /// IntPtr GetAddress(string function); /// /// Returns the display modes supported by the current opengl context. /// /// An array containing all supported display modes. IEnumerable GetDisplayModes(); } }