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
Create new mesh objects.
- Parameters:
-
| n | number of meshes to create |
| meshes | array to store ids of newly created meshes |
| void GIAPIENTRY giBindMesh |
( |
GIuint |
mesh | ) |
|
Bind mesh to use for further processing.
- Parameters:
-
| void GIAPIENTRY giDeleteMesh |
( |
GIuint |
mesh | ) |
|
Delete mesh and all associated data.
- Parameters:
-
| void GIAPIENTRY giDeleteMeshes |
( |
GIsizei |
n, |
|
|
const GIuint * |
meshes |
|
) |
| |
Delete mesh objects.
- Parameters:
-
| n | number of meshes to delete |
| meshes | ids of meshes to delete |
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:
-
| start | minimal value in index array |
| end | maximal value in index array |
| count | size of index array |
| indices | array 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:
-
| first | index to start at |
| count | number of vertices to process |
| void GIAPIENTRY giCopyMesh |
( |
GIuint |
mesh | ) |
|
Copy mesh from existing mesh.
- Parameters:
-
| void GIAPIENTRY giMeshActivePatch |
( |
GIint |
patch | ) |
|
Set active patch.
- Parameters:
-
Retrieve boolean mesh or patch property.
- Parameters:
-
| pname | property to query |
| params | address of variable to store value |
| void GIAPIENTRY giGetMeshiv |
( |
GIenum |
pname, |
|
|
GIint * |
params |
|
) |
| |
Retrieve integer mesh or patch property.
- Parameters:
-
| pname | property to query |
| params | address of variable to store value |
Retrieve floating point mesh property.
- Parameters:
-
| pname | property to query |
| params | address of variable to store value |
Retrieve boolean mesh or patch attribute property.
- Parameters:
-
| attrib | attribute to query |
| pname | property to query |
| params | address of variable to store value |
Retrieve integer mesh or patch attribute property.
- Parameters:
-
| attrib | attribute to query |
| pname | property to query |
| param | address of variable to store value |
Extract mesh data as indexed vertex arrays.
- Parameters:
-
| vcount | address to store number of vertices at |
| icount | address to store number of indices at |
| indices | array to fill or NULL if just querying sizes |
| void GIAPIENTRY giGetNonIndexedMesh |
( |
GIuint * |
vcount | ) |
|
Extract mesh data as non-indexed vertex arrays.
- Parameters:
-
| vcount | address to store number of vertices at |