OpenGI 2.1
Easy parameterization and Geometry Image creation

Sampling

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.

Detailed Description

Structures and functions for sampling mesh attributes to images.


Function Documentation

void GIAPIENTRY giSamplerParameterb ( GIenum  pname,
GIboolean  param 
)

Set boolean configuration parameter for sampling.

Parameters:
pnamestate to set
paramvalue to set
void GIAPIENTRY giSamplerParameteri ( GIenum  pname,
GIint  param 
)

Set integer configuration parameter for sampling.

Parameters:
pnamestate to set
paramvalue to set
void GIAPIENTRY giAttribSamplerParameterb ( GIuint  attrib,
GIenum  pname,
GIboolean  param 
)

Set boolean attribute sampling parameter.

Parameters:
attribattribute channel
pnamestate to set
paramvalue to set
void GIAPIENTRY giAttribSamplerParameteri ( GIuint  attrib,
GIenum  pname,
GIint  param 
)

Set integer attribute sampling parameter.

Parameters:
attribattribute channel
pnamestate to set
paramvalue to set
void GIAPIENTRY giAttribSamplerParameterfv ( GIuint  attrib,
GIenum  pname,
const GIfloat params 
)

Set floating point array attribute sampling parameter.

Parameters:
attribattribute channel
pnamestate to set
paramsvalues 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).

 All Files Functions Typedefs Defines