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.OpenGL.GL

List of all members.

Protected Member Functions

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

Detailed Description

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

Definition at line 35 of file GraphicsBindingsBase.cs.


Member Function Documentation

override IntPtr OpenTK.Graphics.GraphicsBindingsBase.GetAddress ( string  funcname  )  [protected, virtual]

Retrieves an unmanaged function pointer to the specified function.

Parameters:
funcname A 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.

Definition at line 52 of file GraphicsBindingsBase.cs.

00053         {
00054             return (GraphicsContext.CurrentContext as IGraphicsContextInternal).GetAddress(funcname);
00055         }

 All Classes Functions Variables Enumerations Properties Events

Generated on Tue Mar 9 14:59:22 2010 for The Open Toolkit library by  doxygen 1.6.1