![]() |
OpenGI 2.1
Easy parameterization and Geometry Image creation
|
Functions for querrying and setting GI state. More...
Functions | |
void GIAPIENTRY | giGetBooleanv (GIenum pname, GIboolean *params) |
Retrieve boolean state value. | |
void GIAPIENTRY | giGetIntegerv (GIenum pname, GIint *params) |
Retrieve integer state value. | |
void GIAPIENTRY | giGetFloatv (GIenum pname, GIfloat *params) |
Retrieve floating point state value. | |
void GIAPIENTRY | giEnable (GIenum pname) |
Enable feature. | |
void GIAPIENTRY | giDisable (GIenum pname) |
Disable feture. | |
GIboolean GIAPIENTRY | giIsEnabled (GIenum pname) |
Check if feature is enabled. | |
void GIAPIENTRY | giVertexSubset (GIenum subset, GIsizei count, GIboolean sorted, const GIuint *indices) |
Set vertex subset. | |
void GIAPIENTRY | giGetPointerv (GIenum pname, GIvoid **params) |
Get pointer to attribute array or vertex subset. | |
void GIAPIENTRY | giAttribImage (GIuint attrib, GIuint image) |
Bind image to attribute channel. | |
void GIAPIENTRY | giBindAttrib (GIenum semantic, GIuint attrib) |
Bind attribute to special semantic. | |
void GIAPIENTRY | giEnableAttribArray (GIuint attrib) |
Enable attribute array. | |
void GIAPIENTRY | giDisableAttribArray (GIuint attrib) |
Disable attribute array. | |
void GIAPIENTRY | giAttribPointer (GIuint attrib, GIint size, GIboolean normalized, GIsizei stride, GIfloat *pointer) |
Set attribute array to use during mesh creation and retrieval. | |
void GIAPIENTRY | giGetAttribbv (GIuint attrib, GIenum pname, GIboolean *params) |
Retrieve boolean attribute state. | |
void GIAPIENTRY | giGetAttribiv (GIuint attrib, GIenum pname, GIint *params) |
Retrieve integer attribute state. | |
void GIAPIENTRY | giGetAttribfv (GIuint attrib, GIenum pname, GIfloat *params) |
Retrieve floating point attribute state. | |
void GIAPIENTRY | giGetAttribPointerv (GIuint attrib, GIvoid **params) |
Get pointer to attribute array. | |
GIenum GIAPIENTRY | giGetEnumValue (const GIchar *name) |
Get enum value by name. |
Functions for querrying and setting GI state.
Retrieve boolean state value.
pname | state to query |
params | address of variable to store value |
Retrieve integer state value.
pname | state to query |
params | address of variable to store value |
Retrieve floating point state value.
pname | state to query |
params | address of variable to store value |
void GIAPIENTRY giEnable | ( | GIenum | pname | ) |
Enable feature.
pname | feature to enable |
void GIAPIENTRY giDisable | ( | GIenum | pname | ) |
Disable feture.
pname | feature to disable |
Check if feature is enabled.
pname | feature to check |
GI_TRUE | feature is enabled |
GI_FALSE | feature is disbaled |
void GIAPIENTRY giVertexSubset | ( | GIenum | subset, |
GIsizei | count, | ||
GIboolean | sorted, | ||
const GIuint * | indices | ||
) |
Set vertex subset.
subset | subset to set |
count | number of vertices in subset |
sorted | GI_TRUE if indices sorted, GI_FALSE else |
indices | indices of vertices in subset |
Get pointer to attribute array or vertex subset.
pname | array to query |
params | address to store pointer at |
Bind image to attribute channel.
attrib | attribute to bind image to |
image | image to bind |
Bind attribute to special semantic.
semantic | semantic to bind attribute to |
attrib | attrib to use channel for semantic |
void GIAPIENTRY giEnableAttribArray | ( | GIuint | attrib | ) |
Enable attribute array.
attrib | attribute to enable array for |
void GIAPIENTRY giDisableAttribArray | ( | GIuint | attrib | ) |
Disable attribute array.
attrib | attribute to disable array for |
void GIAPIENTRY giAttribPointer | ( | GIuint | attrib, |
GIint | size, | ||
GIboolean | normalized, | ||
GIsizei | stride, | ||
GIfloat * | pointer | ||
) |
Set attribute array to use during mesh creation and retrieval.
This function sets the pointer to the attribute data that is used to create and retrieve the mesh. This state is set for the entire context and not per mesh as the actual mesh creation and therefore use of the array is not done till either giIndexedMesh() or giNonIndexedMesh() is called.
attrib | attribute index to set pointer for |
size | number of components per attribute |
normalized | normalization flag |
stride | distance between two consecutive vertices or 0 if tightly packed |
pointer | pointer to attribute data |
Retrieve boolean attribute state.
attrib | attribute to query |
pname | state to query |
params | address of variable to store value |
Retrieve integer attribute state.
attrib | attribute to query |
pname | state to query |
params | address of variable to store value |
Retrieve floating point attribute state.
attrib | attribute to query |
pname | state to query |
params | address of variable to store value |
Get pointer to attribute array.
attrib | attribute to query |
params | address to store pointer at |