OpenGI 2.1
Easy parameterization and Geometry Image creation

State management

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.

Detailed Description

Functions for querrying and setting GI state.


Function Documentation

void GIAPIENTRY giGetBooleanv ( GIenum  pname,
GIboolean params 
)

Retrieve boolean state value.

Parameters:
pnamestate to query
paramsaddress of variable to store value
void GIAPIENTRY giGetIntegerv ( GIenum  pname,
GIint params 
)

Retrieve integer state value.

Parameters:
pnamestate to query
paramsaddress of variable to store value
void GIAPIENTRY giGetFloatv ( GIenum  pname,
GIfloat params 
)

Retrieve floating point state value.

Parameters:
pnamestate to query
paramsaddress of variable to store value
void GIAPIENTRY giEnable ( GIenum  pname)

Enable feature.

Parameters:
pnamefeature to enable
void GIAPIENTRY giDisable ( GIenum  pname)

Disable feture.

Parameters:
pnamefeature to disable
GIboolean GIAPIENTRY giIsEnabled ( GIenum  pname)

Check if feature is enabled.

Parameters:
pnamefeature to check
Return values:
GI_TRUEfeature is enabled
GI_FALSEfeature is disbaled
void GIAPIENTRY giVertexSubset ( GIenum  subset,
GIsizei  count,
GIboolean  sorted,
const GIuint indices 
)

Set vertex subset.

Parameters:
subsetsubset to set
countnumber of vertices in subset
sortedGI_TRUE if indices sorted, GI_FALSE else
indicesindices of vertices in subset
void GIAPIENTRY giGetPointerv ( GIenum  pname,
GIvoid **  params 
)

Get pointer to attribute array or vertex subset.

Parameters:
pnamearray to query
paramsaddress to store pointer at
void GIAPIENTRY giAttribImage ( GIuint  attrib,
GIuint  image 
)

Bind image to attribute channel.

Parameters:
attribattribute to bind image to
imageimage to bind
void GIAPIENTRY giBindAttrib ( GIenum  semantic,
GIuint  attrib 
)

Bind attribute to special semantic.

Parameters:
semanticsemantic to bind attribute to
attribattrib to use channel for semantic
void GIAPIENTRY giEnableAttribArray ( GIuint  attrib)

Enable attribute array.

Parameters:
attribattribute to enable array for
void GIAPIENTRY giDisableAttribArray ( GIuint  attrib)

Disable attribute array.

Parameters:
attribattribute 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.

Parameters:
attribattribute index to set pointer for
sizenumber of components per attribute
normalizednormalization flag
stridedistance between two consecutive vertices or 0 if tightly packed
pointerpointer to attribute data
void GIAPIENTRY giGetAttribbv ( GIuint  attrib,
GIenum  pname,
GIboolean params 
)

Retrieve boolean attribute state.

Parameters:
attribattribute to query
pnamestate to query
paramsaddress of variable to store value
void GIAPIENTRY giGetAttribiv ( GIuint  attrib,
GIenum  pname,
GIint params 
)

Retrieve integer attribute state.

Parameters:
attribattribute to query
pnamestate to query
paramsaddress of variable to store value
void GIAPIENTRY giGetAttribfv ( GIuint  attrib,
GIenum  pname,
GIfloat params 
)

Retrieve floating point attribute state.

Parameters:
attribattribute to query
pnamestate to query
paramsaddress of variable to store value
void GIAPIENTRY giGetAttribPointerv ( GIuint  attrib,
GIvoid **  params 
)

Get pointer to attribute array.

Parameters:
attribattribute to query
paramsaddress to store pointer at
GIenum GIAPIENTRY giGetEnumValue ( const GIchar name)

Get enum value by name.

Parameters:
nameenumeration name as string
Returns:
enumeration value
 All Files Functions Typedefs Defines