C# Class OpenTK.BindingsBase

Provides a common foundation for all flat API bindings and implements the extension loading interface.
Datei anzeigen Open project: prepare/HTML-Renderer

Protected Properties

Property Type Description
CoreClass System.Type
CoreFunctionMap MethodInfo>.SortedList
DelegatesClass System.Type

Public Methods

Method Description
BindingsBase ( ) : System

Constructs a new BindingsBase instance.

LoadEntryPoints ( ) : void

Protected Methods

Method Description
GetAddress ( string funcname ) : IntPtr

Retrieves an unmanaged function pointer to the specified function.

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.

Private Methods

Method Description
GetExtensionDelegate ( string name, Type signature ) : Delegate
LoadDelegate ( string name, Type signature ) : Delegate
LoadEntryPoint ( string function ) : bool

Method Details

BindingsBase() public method

Constructs a new BindingsBase instance.
public BindingsBase ( ) : System
return System

GetAddress() protected abstract method

Retrieves an unmanaged function pointer to the specified function.
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.
protected abstract GetAddress ( string funcname ) : IntPtr
funcname string /// A that defines the name of the function. ///
return System.IntPtr

LoadEntryPoints() public method

public LoadEntryPoints ( ) : void
return void

Property Details

CoreClass protected_oe property

A refection handle to the nested type that contains core functions (i.e. not extensions).
protected Type,System CoreClass
return System.Type

CoreFunctionMap protected_oe property

A mapping of core function names to MethodInfo handles.
protected SortedList CoreFunctionMap
return MethodInfo>.SortedList

DelegatesClass protected_oe property

A reflection handle to the nested type that contains the function delegates.
protected Type,System DelegatesClass
return System.Type