The Open Toolkit library  1.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Protected Member Functions | Protected Attributes | List of all members
OpenTK.Graphics.GraphicsBindingsBase Class Reference

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

Inheritance diagram for OpenTK.Graphics.GraphicsBindingsBase:
OpenTK.BindingsBase OpenTK.Graphics.ES10.GL OpenTK.Graphics.ES11.GL OpenTK.Graphics.ES20.GL OpenTK.Graphics.ES30.GL OpenTK.Graphics.OpenGL4.GL OpenTK.Graphics.OpenGL.GL

Protected Member Functions

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

Protected Attributes

IntPtr[] EntryPointsInstance
 Contains the list of API entry points (function pointers). This field must be set by an inheriting class. More...
 
string[] EntryPointNamesInstance
 Contains the list of API entry point names. This field must be set by an inheriting class. 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...
 

Additional Inherited Members

- Public Member Functions inherited from OpenTK.BindingsBase
 BindingsBase ()
 Constructs a new BindingsBase instance. More...
 
- Static Protected Member Functions inherited from OpenTK.BindingsBase
static void MarshalPtrToStringBuilder (IntPtr ptr, StringBuilder sb)
 Marshals a pointer to a null-terminated byte array to the specified StringBuilder. This method supports OpenTK and is not intended to be called by user code. More...
 
static IntPtr MarshalStringToPtr (string str)
 Marshal a System.String to unmanaged memory. The resulting string is encoded in ASCII and must be freed with FreeStringPtr. More...
 
static void FreeStringPtr (IntPtr ptr)
 Frees a marshalled string that allocated by MarshalStringToPtr. More...
 
static IntPtr MarshalStringArrayToPtr (string[] str_array)
 Marshals a System.String array to unmanaged memory by calling Marshal.AllocHGlobal for each element. More...
 
static void FreeStringArrayPtr (IntPtr ptr, int length)
 Frees a marshalled string that allocated by MarshalStringArrayToPtr. 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.

Member Data Documentation

string [] OpenTK.Graphics.GraphicsBindingsBase.EntryPointNamesInstance
protected

Contains the list of API entry point names. This field must be set by an inheriting class.

IntPtr [] OpenTK.Graphics.GraphicsBindingsBase.EntryPointsInstance
protected

Contains the list of API entry points (function pointers). This field must be set by an inheriting class.