thrownewPlatformNotSupportedException("Your platform is not supported currently. Please, refer to http://opentk.sourceforge.net for more information.");
}
}
#region---IGLContextMembers---
/// <summary>
/// Gets a handle to the OpenGL rendering context.
/// </summary>
publicIntPtrContext
{
get{returnimplementation.Context;}
}
/// <summary>
/// Gets the IWindowInfo describing the window associated with this context.
/// </summary>
publicIWindowInfoInfo
{
get{returnimplementation.Info;}
}
/// <summary>
/// Gets the DisplayMode of the context.
/// </summary>
publicDisplayModeMode
{
get{returnimplementation.Mode;}
}
/// <summary>
/// Creates an OpenGL context.
/// </summary>
publicvoidCreateContext()
{
implementation.CreateContext();
}
/// <summary>
/// Creates an OpenGL context with a direct or indirect rendering mode. This parameter is ignored
/// on Windows platforms (direct mode only).
/// </summary>
/// <param name="direct">Set to true for direct rendering or false otherwise.</param>
/// <remarks>
/// <para>
/// Direct rendering is the default rendering mode for OpenTK, since it can provide higher performance
/// in some circumastances.
/// </para>
/// <para>
/// The 'direct' parameter is a hint, and will ignored if the specified mode is not supported (e.g. setting
/// indirect rendering on Windows platforms).
/// </para>
/// </remarks>
publicvoidCreateContext(booldirect)
{
implementation.CreateContext(direct);
}
/// <summary>
/// Creates an OpenGL context with the specified direct/indirect rendering mode and sharing state with the
/// specified IGLContext.
/// </summary>
/// <param name="direct">Set to true for direct rendering or false otherwise.</param>
/// <param name="source">The source IGLContext to share state from.</param>.