#include <mms3dpolygonmesh.h>
Public Member Functions | |
MMS3DPolygonMesh () | |
void | getArrays (MMS_VERTEX_ARRAY ***varrays, MMS_INDEX_ARRAY ***iarrays) |
bool | setPrimitives (string id, MMS_VERTEX_ARRAY *vertices, MMS_VERTEX_ARRAY *normals, MMS_VERTEX_ARRAY *texcoords, MMS_INDEX_ARRAY *indices) |
bool | getPrimitives (string id, int *vertices, int *normals, int *texcoords, int *indices) |
bool | genRectangle (float width, float height, int *vertices, int *normals, int *texcoords, int *indices) |
bool | genSphere (int numSlices, float radius, int *vertices, int *normals, int *texcoords, int *indices) |
bool | genTorus (int numwraps, int numperwrap, float majorradius, float minorradius, int *vertices, int *normals, int *texcoords, int *indices) |
bool | genCylinder (int numSlices, float height, float radius, int *vertices, int *normals, int *texcoords, int *indices) |
Private Types | |
enum | MMS3DPM_TYPE { MMS3DPM_TYPE_PRIMITIVES = 0, MMS3DPM_TYPE_RECTANGLE, MMS3DPM_TYPE_SPHERE, MMS3DPM_TYPE_TORUS, MMS3DPM_TYPE_CYLINDER } |
typedef float | MMS3DPM_MESHID [8] |
Private Member Functions | |
void | genRectangle (float width, float height, MMS_VERTEX_ARRAY *vertices, MMS_VERTEX_ARRAY *normals, MMS_VERTEX_ARRAY *texcoords, MMS_INDEX_ARRAY *indices) |
void | genSphere (int numSlices, float radius, MMS_VERTEX_ARRAY *vertices, MMS_VERTEX_ARRAY *normals, MMS_VERTEX_ARRAY *texcoords, MMS_INDEX_ARRAY *indices) |
void | genTorus (int numwraps, int numperwrap, float majorradius, float minorradius, MMS_VERTEX_ARRAY *vertices, MMS_VERTEX_ARRAY *normals, MMS_VERTEX_ARRAY *texcoords, MMS_INDEX_ARRAY *indices) |
void | genCylinder (int numSlices, float height, float radius, MMS_VERTEX_ARRAY *vertices, MMS_VERTEX_ARRAY *normals, MMS_VERTEX_ARRAY *texcoords, MMS_INDEX_ARRAY *indices) |
int | findPMItem (MMS3DPM_TYPE type, MMS3DPM_MESHID identifier, int *vertices, int *normals, int *texcoords, int *indices) |
int | newPMItem (MMS3DPM_TYPE type, MMS3DPM_MESHID identifier, int *vertices, int *normals, int *texcoords, int *indices) |
int | newPMItem (MMS3DPM_TYPE type, MMS3DPM_MESHID identifier, MMS_VERTEX_ARRAY *vertices, MMS_VERTEX_ARRAY *normals, MMS_VERTEX_ARRAY *texcoords, MMS_INDEX_ARRAY *indices) |
Private Attributes | |
MMS3DPM_ITEM | pm_items [MMS3DPM_ITEM_MAX] |
mesh items | |
int | pm_items_cnt |
MMS_VERTEX_ARRAY | vabuf [MMS3DPM_ITEM_MAX *3] |
vertex arrays used by mesh items | |
MMS_VERTEX_ARRAY * | varrays [MMS3DPM_ITEM_MAX *3+1] |
int | varrays_cnt |
MMS_INDEX_ARRAY | iabuf [MMS3DPM_ITEM_MAX] |
index arrays used by mesh items | |
MMS_INDEX_ARRAY * | iarrays [MMS3DPM_ITEM_MAX+1] |
int | iarrays_cnt |
Classes | |
struct | MMS3DPM_ITEM |
Definition at line 38 of file mms3dpolygonmesh.h.
typedef float MMS3DPolygonMesh::MMS3DPM_MESHID[8] [private] |
Definition at line 49 of file mms3dpolygonmesh.h.
enum MMS3DPolygonMesh::MMS3DPM_TYPE [private] |
MMS3DPM_TYPE_PRIMITIVES | |
MMS3DPM_TYPE_RECTANGLE | |
MMS3DPM_TYPE_SPHERE | |
MMS3DPM_TYPE_TORUS | |
MMS3DPM_TYPE_CYLINDER |
Definition at line 41 of file mms3dpolygonmesh.h.
MMS3DPolygonMesh::MMS3DPolygonMesh | ( | ) |
Definition at line 39 of file mms3dpolygonmesh.cpp.
void MMS3DPolygonMesh::genRectangle | ( | float | width, | |
float | height, | |||
MMS_VERTEX_ARRAY * | vertices, | |||
MMS_VERTEX_ARRAY * | normals, | |||
MMS_VERTEX_ARRAY * | texcoords, | |||
MMS_INDEX_ARRAY * | indices | |||
) | [private] |
Definition at line 51 of file mms3dpolygonmesh.cpp.
void MMS3DPolygonMesh::genSphere | ( | int | numSlices, | |
float | radius, | |||
MMS_VERTEX_ARRAY * | vertices, | |||
MMS_VERTEX_ARRAY * | normals, | |||
MMS_VERTEX_ARRAY * | texcoords, | |||
MMS_INDEX_ARRAY * | indices | |||
) | [private] |
Definition at line 84 of file mms3dpolygonmesh.cpp.
void MMS3DPolygonMesh::genTorus | ( | int | numwraps, | |
int | numperwrap, | |||
float | majorradius, | |||
float | minorradius, | |||
MMS_VERTEX_ARRAY * | vertices, | |||
MMS_VERTEX_ARRAY * | normals, | |||
MMS_VERTEX_ARRAY * | texcoords, | |||
MMS_INDEX_ARRAY * | indices | |||
) | [private] |
Definition at line 142 of file mms3dpolygonmesh.cpp.
void MMS3DPolygonMesh::genCylinder | ( | int | numSlices, | |
float | height, | |||
float | radius, | |||
MMS_VERTEX_ARRAY * | vertices, | |||
MMS_VERTEX_ARRAY * | normals, | |||
MMS_VERTEX_ARRAY * | texcoords, | |||
MMS_INDEX_ARRAY * | indices | |||
) | [private] |
Definition at line 206 of file mms3dpolygonmesh.cpp.
int MMS3DPolygonMesh::findPMItem | ( | MMS3DPM_TYPE | type, | |
MMS3DPM_MESHID | identifier, | |||
int * | vertices, | |||
int * | normals, | |||
int * | texcoords, | |||
int * | indices | |||
) | [private] |
Definition at line 253 of file mms3dpolygonmesh.cpp.
int MMS3DPolygonMesh::newPMItem | ( | MMS3DPM_TYPE | type, | |
MMS3DPM_MESHID | identifier, | |||
int * | vertices, | |||
int * | normals, | |||
int * | texcoords, | |||
int * | indices | |||
) | [private] |
Definition at line 282 of file mms3dpolygonmesh.cpp.
int MMS3DPolygonMesh::newPMItem | ( | MMS3DPM_TYPE | type, | |
MMS3DPM_MESHID | identifier, | |||
MMS_VERTEX_ARRAY * | vertices, | |||
MMS_VERTEX_ARRAY * | normals, | |||
MMS_VERTEX_ARRAY * | texcoords, | |||
MMS_INDEX_ARRAY * | indices | |||
) | [private] |
Definition at line 368 of file mms3dpolygonmesh.cpp.
void MMS3DPolygonMesh::getArrays | ( | MMS_VERTEX_ARRAY *** | varrays, | |
MMS_INDEX_ARRAY *** | iarrays | |||
) |
Definition at line 441 of file mms3dpolygonmesh.cpp.
bool MMS3DPolygonMesh::setPrimitives | ( | string | id, | |
MMS_VERTEX_ARRAY * | vertices, | |||
MMS_VERTEX_ARRAY * | normals, | |||
MMS_VERTEX_ARRAY * | texcoords, | |||
MMS_INDEX_ARRAY * | indices | |||
) |
Definition at line 446 of file mms3dpolygonmesh.cpp.
bool MMS3DPolygonMesh::getPrimitives | ( | string | id, | |
int * | vertices, | |||
int * | normals, | |||
int * | texcoords, | |||
int * | indices | |||
) |
Definition at line 464 of file mms3dpolygonmesh.cpp.
bool MMS3DPolygonMesh::genRectangle | ( | float | width, | |
float | height, | |||
int * | vertices, | |||
int * | normals, | |||
int * | texcoords, | |||
int * | indices | |||
) |
Definition at line 475 of file mms3dpolygonmesh.cpp.
bool MMS3DPolygonMesh::genSphere | ( | int | numSlices, | |
float | radius, | |||
int * | vertices, | |||
int * | normals, | |||
int * | texcoords, | |||
int * | indices | |||
) |
Definition at line 484 of file mms3dpolygonmesh.cpp.
bool MMS3DPolygonMesh::genTorus | ( | int | numwraps, | |
int | numperwrap, | |||
float | majorradius, | |||
float | minorradius, | |||
int * | vertices, | |||
int * | normals, | |||
int * | texcoords, | |||
int * | indices | |||
) |
Definition at line 493 of file mms3dpolygonmesh.cpp.
bool MMS3DPolygonMesh::genCylinder | ( | int | numSlices, | |
float | height, | |||
float | radius, | |||
int * | vertices, | |||
int * | normals, | |||
int * | texcoords, | |||
int * | indices | |||
) |
Definition at line 503 of file mms3dpolygonmesh.cpp.
MMS3DPM_ITEM MMS3DPolygonMesh::pm_items[MMS3DPM_ITEM_MAX] [private] |
int MMS3DPolygonMesh::pm_items_cnt [private] |
Definition at line 66 of file mms3dpolygonmesh.h.
MMS_VERTEX_ARRAY MMS3DPolygonMesh::vabuf[MMS3DPM_ITEM_MAX *3] [private] |
MMS_VERTEX_ARRAY* MMS3DPolygonMesh::varrays[MMS3DPM_ITEM_MAX *3+1] [private] |
Definition at line 70 of file mms3dpolygonmesh.h.
int MMS3DPolygonMesh::varrays_cnt [private] |
Definition at line 71 of file mms3dpolygonmesh.h.
MMS_INDEX_ARRAY MMS3DPolygonMesh::iabuf[MMS3DPM_ITEM_MAX] [private] |
MMS_INDEX_ARRAY* MMS3DPolygonMesh::iarrays[MMS3DPM_ITEM_MAX+1] [private] |
Definition at line 75 of file mms3dpolygonmesh.h.
int MMS3DPolygonMesh::iarrays_cnt [private] |
Definition at line 76 of file mms3dpolygonmesh.h.