Interface IGraphicsContextInternal
Provides methods to create new GraphicsContexts. Should only be used for extending OpenTK.
Namespace: OpenTK.Graphics
Assembly: OpenTK.dll
Syntax
public interface IGraphicsContextInternal
Properties
Context
Gets a handle to the OpenGL rendering context.
Declaration
ContextHandle Context { get; }
Property Value
Type | Description |
---|---|
ContextHandle |
Implementation
Gets the internal implementation of the current instance.
Declaration
IGraphicsContext Implementation { get; }
Property Value
Type | Description |
---|---|
IGraphicsContext |
Methods
GetAddress(IntPtr)
Retrieves the implementation-defined address of an OpenGL function.
Declaration
IntPtr GetAddress(IntPtr function)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | function | A pointer to a null-terminated buffer containing the name of the OpenGL function. |
Returns
Type | Description |
---|---|
IntPtr | A pointer to the specified function or an invalid pointer if the function is not available in the current OpenGL context. The return value and calling convention depends on the underlying platform. |
Remarks
GetAddress(String)
Retrieves the implementation-defined address of an OpenGL function.
Declaration
IntPtr GetAddress(string function)
Parameters
Type | Name | Description |
---|---|---|
String | function | The name of the OpenGL function (e.g. "glGetString") |
Returns
Type | Description |
---|---|
IntPtr | A pointer to the specified function or an invalid pointer if the function is not available in the current OpenGL context. The return value and calling convention depends on the underlying platform. |
LoadAll()
Loads all OpenGL entry points. Requires this instance to be current on the calling thread.
Declaration
void LoadAll()