OpenGI 2.1
Easy parameterization and Geometry Image creation

Mesh handling

Structures and functions for working with triangular meshes. More...

Functions

GIuint GIAPIENTRY giGenMesh ()
 Create new mesh object.
void GIAPIENTRY giGenMeshes (GIsizei n, GIuint *meshes)
 Create new mesh objects.
void GIAPIENTRY giBindMesh (GIuint mesh)
 Bind mesh to use for further processing.
void GIAPIENTRY giDeleteMesh (GIuint mesh)
 Delete mesh and all associated data.
void GIAPIENTRY giDeleteMeshes (GIsizei n, const GIuint *meshes)
 Delete mesh objects.
void GIAPIENTRY giIndexedMesh (GIuint start, GIuint end, GIsizei count, const GIuint *indices)
 Create mesh from indices into current attribute arrays.
void GIAPIENTRY giNonIndexedMesh (GIint first, GIsizei count)
 Create mesh from current attribute arrays.
void GIAPIENTRY giCopyMesh (GIuint mesh)
 Copy mesh from existing mesh.
void GIAPIENTRY giComputeParamStretch (GIenum metric)
 Recompute per param stretch values.
void GIAPIENTRY giMeshActivePatch (GIint patch)
 Set active patch.
void GIAPIENTRY giGetMeshbv (GIenum pname, GIboolean *params)
 Retrieve boolean mesh or patch property.
void GIAPIENTRY giGetMeshiv (GIenum pname, GIint *params)
 Retrieve integer mesh or patch property.
void GIAPIENTRY giGetMeshfv (GIenum pname, GIfloat *params)
 Retrieve floating point mesh property.
void GIAPIENTRY giGetMeshAttribbv (GIuint attrib, GIenum pname, GIboolean *params)
 Retrieve boolean mesh or patch attribute property.
void GIAPIENTRY giGetMeshAttribiv (GIuint attrib, GIenum pname, GIint *param)
 Retrieve integer mesh or patch attribute property.
void GIAPIENTRY giGetIndexedMesh (GIuint *vcount, GIuint *icount, GIuint *indices)
 Extract mesh data as indexed vertex arrays.
void GIAPIENTRY giGetNonIndexedMesh (GIuint *vcount)
 Extract mesh data as non-indexed vertex arrays.

Detailed Description

Structures and functions for working with triangular meshes.


Function Documentation

GIuint GIAPIENTRY giGenMesh ( )

Create new mesh object.

Returns:
id of new mesh
void GIAPIENTRY giGenMeshes ( GIsizei  n,
GIuint meshes 
)

Create new mesh objects.

Parameters:
nnumber of meshes to create
meshesarray to store ids of newly created meshes
void GIAPIENTRY giBindMesh ( GIuint  mesh)

Bind mesh to use for further processing.

Parameters:
meshid of mesh to bind
void GIAPIENTRY giDeleteMesh ( GIuint  mesh)

Delete mesh and all associated data.

Parameters:
meshid of mesh to delete
void GIAPIENTRY giDeleteMeshes ( GIsizei  n,
const GIuint meshes 
)

Delete mesh objects.

Parameters:
nnumber of meshes to delete
meshesids of meshes to delete
void GIAPIENTRY giIndexedMesh ( GIuint  start,
GIuint  end,
GIsizei  count,
const GIuint indices 
)

Create mesh from indices into current attribute arrays.

This function creates a new mesh by indexing into the currently set and enabled attribute arrays. WARNING: All previous mesh data of the current bound mesh object will be deleted.

Parameters:
startminimal value in index array
endmaximal value in index array
countsize of index array
indicesarray of indices into attribute arrays
void GIAPIENTRY giNonIndexedMesh ( GIint  first,
GIsizei  count 
)

Create mesh from current attribute arrays.

This function creates a new mesh by walking through the currently set and enabled attribute arrays. WARNING: All previous mesh data of the current bound mesh object will be deleted.

Parameters:
firstindex to start at
countnumber of vertices to process
void GIAPIENTRY giCopyMesh ( GIuint  mesh)

Copy mesh from existing mesh.

Parameters:
meshmesh to copy from
void GIAPIENTRY giMeshActivePatch ( GIint  patch)

Set active patch.

Parameters:
patchpatch to set active
void GIAPIENTRY giGetMeshbv ( GIenum  pname,
GIboolean params 
)

Retrieve boolean mesh or patch property.

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

Retrieve integer mesh or patch property.

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

Retrieve floating point mesh property.

Parameters:
pnameproperty to query
paramsaddress of variable to store value
void GIAPIENTRY giGetMeshAttribbv ( GIuint  attrib,
GIenum  pname,
GIboolean params 
)

Retrieve boolean mesh or patch attribute property.

Parameters:
attribattribute to query
pnameproperty to query
paramsaddress of variable to store value
void GIAPIENTRY giGetMeshAttribiv ( GIuint  attrib,
GIenum  pname,
GIint param 
)

Retrieve integer mesh or patch attribute property.

Parameters:
attribattribute to query
pnameproperty to query
paramaddress of variable to store value
void GIAPIENTRY giGetIndexedMesh ( GIuint vcount,
GIuint icount,
GIuint indices 
)

Extract mesh data as indexed vertex arrays.

Parameters:
vcountaddress to store number of vertices at
icountaddress to store number of indices at
indicesarray to fill or NULL if just querying sizes
void GIAPIENTRY giGetNonIndexedMesh ( GIuint vcount)

Extract mesh data as non-indexed vertex arrays.

Parameters:
vcountaddress to store number of vertices at
 All Files Functions Typedefs Defines