|
RioEngine
0.1
My first attempt to create a 3D WYSIWYG Game Engine
|
#include <clmesh.h>
Public Member Functions | |
| CLMesh (void) | |
| CLMesh (const CLMesh &mesh) | |
| CLMesh & | operator= (const CLMesh &mesh) |
| void | setPositions (CArray< btVector3 > *positions) |
| void | setNormals (CArray< btVector3 > *normals) |
| void | setMapArray (CArray< TextureCoord > *map_array) |
| void | setTriangles (CArray< CLTriangles > *triangles_array) |
| CArray< btVector3 > * | normals () const |
| CArray< btVector3 > * | positions () const |
| CArray< TextureCoord > * | mapArray () const |
| CArray< CLTriangles > * | triangles () const |
| CLPolygon | getPolygonForTrianglesIndex (unsigned int index) |
| CArray< CLPolygon > * | getPolygonsArray () |
| CArray< CLPolygon > * | fixPolygonsArray (std::vector< CLPolygon > *polygons_array) |
| template<class T > | |
| CArray< T > * | getLocationsArrayHavingIndicesArray (CArray< T > *locations_array, CArray< int > *indices_array) |
| ~CLMesh (void) | |
Public Member Functions inherited from CObject | |
| CObject () | |
| CObject (const CObject &object) | |
| CObject & | operator= (const CObject &object) |
| CObject * | retain () |
| unsigned int | release () const |
| CObject * | autorelease () |
| unsigned int | retainCount () const |
| bool | isValidCObject () const |
| virtual | ~CObject () |
Protected Member Functions | |
| virtual void | copyValuesFromObject (const CLMesh &mesh) |
Protected Member Functions inherited from CObject | |
| virtual void | copyValuesFromObject (const CObject &object) |
Additional Inherited Members | |
Static Public Member Functions inherited from CObject | |
| static void | safeRetain (void *pointer) |
| template<class T > | |
| static void | safeRelease (T *pointer) |
| template<class T > | |
| static void | safeReleaseArray (T *array) |
| static void | safeRelease (const char *pointer) |
CLMesh objects contain raw data (vertices, normals and textures), CLTriangle objects are used to create CLPolygon objects, which are used by CLRenderer to draw a textured polygon. CLPolygons objects are contained in CLGeometry objects.
| CLMesh::CLMesh | ( | void | ) |
Definition at line 41 of file clmesh.cpp.
| CLMesh::CLMesh | ( | const CLMesh & | mesh | ) |
Definition at line 62 of file clmesh.cpp.
| CLMesh::~CLMesh | ( | void | ) |
Definition at line 248 of file clmesh.cpp.
|
protectedvirtual |
Definition at line 68 of file clmesh.cpp.
This method recenters object's origin, it also scales down the object (if needed)
Definition at line 180 of file clmesh.cpp.
| CLPolygon CLMesh::getPolygonForTrianglesIndex | ( | unsigned int | index | ) |
Creates the CLPolygon object for the specified CLTriangle array index
Definition at line 137 of file clmesh.cpp.
Returns a CLPolygon object for each CLTriangle object
Definition at line 162 of file clmesh.cpp.
| CArray< TextureCoord > * CLMesh::mapArray | ( | ) | const |
Definition at line 131 of file clmesh.cpp.
| CArray< btVector3 > * CLMesh::normals | ( | ) | const |
Definition at line 116 of file clmesh.cpp.
Definition at line 50 of file clmesh.cpp.
| CArray< btVector3 > * CLMesh::positions | ( | ) | const |
Definition at line 101 of file clmesh.cpp.
| void CLMesh::setMapArray | ( | CArray< TextureCoord > * | map_array | ) |
Definition at line 122 of file clmesh.cpp.
| void CLMesh::setNormals | ( | CArray< btVector3 > * | normals | ) |
Definition at line 107 of file clmesh.cpp.
| void CLMesh::setPositions | ( | CArray< btVector3 > * | positions | ) |
Definition at line 92 of file clmesh.cpp.
| void CLMesh::setTriangles | ( | CArray< CLTriangles > * | triangles_array | ) |
Definition at line 77 of file clmesh.cpp.
| CArray< CLTriangles > * CLMesh::triangles | ( | ) | const |
Definition at line 86 of file clmesh.cpp.