Derm.OpenGL.ProcLoader Class Reference
Base class for loading external routines.
More...
List of all members.
Static Public Member Functions |
static void | CloseLog () |
| Close procedure log.
|
static void | CreateLog (string path) |
| Create a file for logging procedures.
|
static void | LogComment (string comment) |
| Log a comment.
|
static void | LogProc (string proc) |
| Log a procedure call.
|
Static Protected Member Functions |
static Dictionary< string, bool > | ParseExtensionString (string exts) |
| Parse an extension string.
|
static FieldInfo[] | QueryDelegates (Type klass) |
| Query delegate members.
|
static SortedList< string,
MethodInfo > | QueryImports (Type klass) |
| Query import functions.
|
static void | SyncDelegate (SortedList< string, MethodInfo > pImports, FieldInfo[] pDelegates, string name) |
static void | SynchDelegates (SortedList< string, MethodInfo > pImports, FieldInfo[] pDelegates) |
Detailed Description
Base class for loading external routines.
This class is used for basic operations of automatic generated classes Gl, Wgl and Glx. The main functions of this class allows:
- To parse OpenGL extensions string
- To query import functions using reflection
- To query delegate functions using reflection
- To link imported functions into delegates functions.
Member Function Documentation
static void Derm.OpenGL.ProcLoader.CloseLog |
( |
|
) |
[static] |
static void Derm.OpenGL.ProcLoader.CreateLog |
( |
string |
path |
) |
[static] |
Create a file for logging procedures.
- Parameters:
-
| path | A System.String specifying the path of the log file. |
static void Derm.OpenGL.ProcLoader.LogComment |
( |
string |
comment |
) |
[static] |
Log a comment.
- Parameters:
-
| proc | A System.String specifying the comment string. A comment prefix is prepended. |
static void Derm.OpenGL.ProcLoader.LogProc |
( |
string |
proc |
) |
[static] |
Log a procedure call.
- Parameters:
-
| proc | A System.String specifying the function call. Actually it can be any string. |
static Dictionary<string, bool> Derm.OpenGL.ProcLoader.ParseExtensionString |
( |
string |
exts |
) |
[static, protected] |
Parse an extension string.
- Parameters:
-
| exts | A string representing a list of extensions deperated by spaces. This string is generated using OpenGL routine glGetString or platform specific routines. |
- Returns:
- It returns a dictionary which maps the extension name with a boolean value indicating whether an extension is supported or not.
static FieldInfo [] Derm.OpenGL.ProcLoader.QueryDelegates |
( |
Type |
klass |
) |
[static, protected] |
Query delegate members.
- Parameters:
-
| klass | A Type epresenting the nested class containing delegate declarations. |
- Returns:
- It returns an array of FieldInfo representing the delegate member.
static SortedList<string, MethodInfo> Derm.OpenGL.ProcLoader.QueryImports |
( |
Type |
klass |
) |
[static, protected] |
Query import functions.
- Parameters:
-
| klass | A Type representing the nested class containing imports declarations. |
- Returns:
- It returns a (sorted) dictionary which maps the import name with the MethodInfo indicating the import signature.
static void Derm.OpenGL.ProcLoader.SyncDelegate |
( |
SortedList< string, MethodInfo > |
pImports, |
|
|
FieldInfo[] |
pDelegates, |
|
|
string |
name | |
|
) |
| | [static, protected] |
static void Derm.OpenGL.ProcLoader.SynchDelegates |
( |
SortedList< string, MethodInfo > |
pImports, |
|
|
FieldInfo[] |
pDelegates | |
|
) |
| | [static, protected] |