MMS3DPolygonMesh Class Reference

#include <mms3dpolygonmesh.h>

List of all members.


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_ARRAYvarrays [MMS3DPM_ITEM_MAX *3+1]
int varrays_cnt
MMS_INDEX_ARRAY iabuf [MMS3DPM_ITEM_MAX]
 index arrays used by mesh items
MMS_INDEX_ARRAYiarrays [MMS3DPM_ITEM_MAX+1]
int iarrays_cnt

Classes

struct  MMS3DPM_ITEM

Detailed Description

Definition at line 38 of file mms3dpolygonmesh.h.


Member Typedef Documentation

typedef float MMS3DPolygonMesh::MMS3DPM_MESHID[8] [private]

Definition at line 49 of file mms3dpolygonmesh.h.


Member Enumeration Documentation

Enumerator:
MMS3DPM_TYPE_PRIMITIVES 
MMS3DPM_TYPE_RECTANGLE 
MMS3DPM_TYPE_SPHERE 
MMS3DPM_TYPE_TORUS 
MMS3DPM_TYPE_CYLINDER 

Definition at line 41 of file mms3dpolygonmesh.h.


Constructor & Destructor Documentation

MMS3DPolygonMesh::MMS3DPolygonMesh (  ) 

Definition at line 39 of file mms3dpolygonmesh.cpp.


Member Function Documentation

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.


Member Data Documentation

MMS3DPM_ITEM MMS3DPolygonMesh::pm_items[MMS3DPM_ITEM_MAX] [private]

mesh items

Definition at line 65 of file mms3dpolygonmesh.h.

Definition at line 66 of file mms3dpolygonmesh.h.

MMS_VERTEX_ARRAY MMS3DPolygonMesh::vabuf[MMS3DPM_ITEM_MAX *3] [private]

vertex arrays used by mesh items

Definition at line 69 of file mms3dpolygonmesh.h.

MMS_VERTEX_ARRAY* MMS3DPolygonMesh::varrays[MMS3DPM_ITEM_MAX *3+1] [private]

Definition at line 70 of file mms3dpolygonmesh.h.

Definition at line 71 of file mms3dpolygonmesh.h.

MMS_INDEX_ARRAY MMS3DPolygonMesh::iabuf[MMS3DPM_ITEM_MAX] [private]

index arrays used by mesh items

Definition at line 74 of file mms3dpolygonmesh.h.

MMS_INDEX_ARRAY* MMS3DPolygonMesh::iarrays[MMS3DPM_ITEM_MAX+1] [private]

Definition at line 75 of file mms3dpolygonmesh.h.

Definition at line 76 of file mms3dpolygonmesh.h.


The documentation for this class was generated from the following files: