Tao.OpenGl SDK Documentation

Gl.GetFunctionPointerForExtensionMethod Method 

Retrieves the entry point for a dynamically exported OpenGL function.

[Visual Basic]
Public Shared Function GetFunctionPointerForExtensionMethod( _
   ByVal name As String _
) As IntPtr
[C#]
public static IntPtr GetFunctionPointerForExtensionMethod(
   string name
);

Parameters

name
The function string for the OpenGL function (eg. "glNewList")

Return Value

An IntPtr contaning the address for the entry point, or IntPtr.Zero if the specified OpenGL function is not dynamically exported.

Remarks

The Marshal.GetDelegateForFunctionPointer method can be used to turn the return value into a call-able delegate.

This function is cross-platform. It determines the underlying platform and uses the correct wgl, glx or agl GetAddress function to retrieve the function pointer.

GetDelegateForFunctionPointer

See Also

Gl Class | Tao.OpenGl Namespace | GetDelegateForExtensionMethod