![]() |
OpenGI 2.1
Easy parameterization and Geometry Image creation
|
Structures and functions for sampling mesh attributes to images. More...
Functions | |
void GIAPIENTRY | giSamplerParameterb (GIenum pname, GIboolean param) |
Set boolean configuration parameter for sampling. | |
void GIAPIENTRY | giSamplerParameteri (GIenum pname, GIint param) |
Set integer configuration parameter for sampling. | |
void GIAPIENTRY | giAttribSamplerParameterb (GIuint attrib, GIenum pname, GIboolean param) |
Set boolean attribute sampling parameter. | |
void GIAPIENTRY | giAttribSamplerParameteri (GIuint attrib, GIenum pname, GIint param) |
Set integer attribute sampling parameter. | |
void GIAPIENTRY | giAttribSamplerParameterfv (GIuint attrib, GIenum pname, const GIfloat *params) |
Set floating point array attribute sampling parameter. | |
void GIAPIENTRY | giSample () |
Sample attributes of current mesh (with UVs) to according images. |
Structures and functions for sampling mesh attributes to images.
Set boolean configuration parameter for sampling.
pname | state to set |
param | value to set |
Set integer configuration parameter for sampling.
pname | state to set |
param | value to set |
Set boolean attribute sampling parameter.
attrib | attribute channel |
pname | state to set |
param | value to set |
Set integer attribute sampling parameter.
attrib | attribute channel |
pname | state to set |
param | value to set |
Set floating point array attribute sampling parameter.
attrib | attribute channel |
pname | state to set |
params | values to set |
void GIAPIENTRY giSample | ( | ) |
Sample attributes of current mesh (with UVs) to according images.
This function samples the specified attributes of the current bound mesh to their according attribute images. The mesh has to have a valid parameterization. When using OpenGL acceleration an OpenGL context has to be current. The function should preserve every state it changes of the current OpenGL context, so it may be called from anywhere in the program (except between glBegin()/glEnd() of course).