The Open Toolkit library  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
OpenTK.Graphics.GraphicsBindingsBase Class Reference

Implements BindingsBase for the OpenTK.Graphics namespace (OpenGL and OpenGL|ES). More...

+ Inheritance diagram for OpenTK.Graphics.GraphicsBindingsBase:

Protected Member Functions

override IntPtr GetAddress (string funcname)
 Retrieves an unmanaged function pointer to the specified function. More...
 

Additional Inherited Members

- Public Member Functions inherited from OpenTK.BindingsBase
 BindingsBase ()
 Constructs a new BindingsBase instance. More...
 
- Protected Attributes inherited from OpenTK.BindingsBase
readonly Type DelegatesClass
 A reflection handle to the nested type that contains the function delegates. More...
 
readonly Type CoreClass
 A refection handle to the nested type that contains core functions (i.e. not extensions). More...
 
readonly SortedList< string,
MethodInfo > 
CoreFunctionMap = new SortedList<string, MethodInfo>()
 A mapping of core function names to MethodInfo handles. More...
 
- Properties inherited from OpenTK.BindingsBase
bool RebuildExtensionList [get, set]
 Gets or sets a System.Boolean that indicates whether the list of supported extensions may have changed. More...
 
abstract object SyncRoot [get]
 Gets an object that can be used to synchronize access to the bindings implementation. More...
 

Detailed Description

Implements BindingsBase for the OpenTK.Graphics namespace (OpenGL and OpenGL|ES).

Member Function Documentation

override IntPtr OpenTK.Graphics.GraphicsBindingsBase.GetAddress ( string  funcname)
protectedvirtual

Retrieves an unmanaged function pointer to the specified function.

Parameters
funcnameA System.String that defines the name of the function.
Returns
A IntPtr that contains the address of funcname or IntPtr.Zero, if the function is not supported by the drivers.

Note: some drivers are known to return non-zero values for unsupported functions. Typical values include 1 and 2 - inheritors are advised to check for and ignore these values.

Implements OpenTK.BindingsBase.