core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

_glapi_function Struct Reference


Detailed Description

Track information about a function added to the GL API.

Data Fields

const char * name
 Name of the function.
const char * parameter_signature
 Text string that describes the types of the parameters passed to the named function.
unsigned dispatch_offset
 Offset in the dispatch table where the pointer to the real function is located.
_glapi_proc dispatch_stub
 Pointer to the dispatch stub for the named function.

Field Documentation

const char* _glapi_function::name

Name of the function.

const char* _glapi_function::parameter_signature

Text string that describes the types of the parameters passed to the named function.

Parameter types are converted to characters using the following rules:

unsigned _glapi_function::dispatch_offset

Offset in the dispatch table where the pointer to the real function is located.

If the driver has not requested that the named function be added to the dispatch table, this will have the value ~0.

_glapi_proc _glapi_function::dispatch_stub

Pointer to the dispatch stub for the named function.

Todo:
The semantic of this field should be changed slightly. Currently, it is always expected to be non-NULL. However, it would be better to only allocate the entry-point stub when the application requests the function via glXGetProcAddress. This would save memory for all the functions that the driver exports but that the application never wants to call.


The documentation for this struct was generated from the following file:
Generated on Sun Sep 27 06:47:56 2009 for Mesa GL API dispatcher by  doxygen 1.5.4