The Open Toolkit library  1.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Properties | List of all members
OpenTK.Graphics.IGraphicsContextInternal Interface Reference

Provides methods to create new GraphicsContexts. Should only be used for extending OpenTK. More...

Inheritance diagram for OpenTK.Graphics.IGraphicsContextInternal:
OpenTK.Graphics.GraphicsContext

Public Member Functions

void LoadAll ()
 Loads all OpenGL entry points. Requires this instance to be current on the calling thread. More...
 
IntPtr GetAddress (string function)
 Retrieves the implementation-defined address of an OpenGL function. More...
 
IntPtr GetAddress (IntPtr function)
 Retrieves the implementation-defined address of an OpenGL function. More...
 

Properties

IGraphicsContext Implementation [get]
 Gets the internal implementation of the current instance. More...
 
ContextHandle Context [get]
 Gets a handle to the OpenGL rendering context. More...
 

Detailed Description

Provides methods to create new GraphicsContexts. Should only be used for extending OpenTK.

Member Function Documentation

IntPtr OpenTK.Graphics.IGraphicsContextInternal.GetAddress ( string  function)

Retrieves the implementation-defined address of an OpenGL function.

Parameters
functionThe name of the OpenGL function (e.g. "glGetString")
Returns
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.
IntPtr OpenTK.Graphics.IGraphicsContextInternal.GetAddress ( IntPtr  function)

Retrieves the implementation-defined address of an OpenGL function.

Parameters
functionA pointer to a null-terminated buffer containing the name of the OpenGL function.
Returns
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.
See Also
GetAddress(string)
void OpenTK.Graphics.IGraphicsContextInternal.LoadAll ( )

Loads all OpenGL entry points. Requires this instance to be current on the calling thread.

Implemented in OpenTK.Graphics.GraphicsContext.

Property Documentation

ContextHandle OpenTK.Graphics.IGraphicsContextInternal.Context
get

Gets a handle to the OpenGL rendering context.

IGraphicsContext OpenTK.Graphics.IGraphicsContextInternal.Implementation
get

Gets the internal implementation of the current instance.