OpenGI 2.1
Easy parameterization and Geometry Image creation

OpenGL interoperability

Structures and functions for interoperating with the OpenGL. More...

Functions

void GIAPIENTRY giGLRenderParameterb (GIenum pname, GIboolean param)
 Set boolean render parameter.
void GIAPIENTRY giGLRenderParameteri (GIenum pname, GIint param)
 Set integer render parameter.
void GIAPIENTRY giGLAttribRenderParameteri (GIuint attrib, GIenum pname, GIint param)
 Set integer attribute render parameter.
void GIAPIENTRY giGLDrawMesh ()
 Render current mesh immediately.
void GIAPIENTRY giGLDrawCut ()
 Render current cut of current mesh immediately.
void GIAPIENTRY giGLDrawGIM ()
 Draw Geometry Images as triangular mesh.
void GIAPIENTRY giGLCleanUp ()
 Clean up OpenGL context specific data.

Detailed Description

Structures and functions for interoperating with the OpenGL.


Function Documentation

void GIAPIENTRY giGLRenderParameterb ( GIenum  pname,
GIboolean  param 
)

Set boolean render parameter.

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

Set integer render parameter.

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

Set integer attribute render parameter.

Parameters:
attribattribute channel
pnamestate to set
paramvalue to set
void GIAPIENTRY giGLDrawMesh ( )

Render current mesh immediately.

This function renders the current bound mesh by glBegin()/glEnd() using the current OpenGL context. It should be built into a display list when needed more than once.

void GIAPIENTRY giGLDrawCut ( )

Render current cut of current mesh immediately.

This function renders the current cut of the current bound mesh as lines by glBegin()/glEnd() using the current OpenGL context. It should be built into a display list when needed more than once.

void GIAPIENTRY giGLDrawGIM ( )

Draw Geometry Images as triangular mesh.

This function renders the attributes currently bound images a a triangular mesh.

void GIAPIENTRY giGLCleanUp ( )

Clean up OpenGL context specific data.

This function should be called before the GL context used by OpenGI is destroyed or changes during the lifetime of the active OpenGI context, as OpenGI may create GL context local data as e.g. shaders. It need not be called when the GI context is destroyed before the GL context, but it has to be called between calls to giSample() or giGLDraw[Mesh/Cut/GIM]() within different GL contexts.

 All Files Functions Typedefs Defines