RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
CLMesh Class Reference

#include <clmesh.h>

Inheritance diagram for CLMesh:
CObject

Public Member Functions

 CLMesh (void)
 
 CLMesh (const CLMesh &mesh)
 
CLMeshoperator= (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)
 
CObjectoperator= (const CObject &object)
 
CObjectretain ()
 
unsigned int release () const
 
CObjectautorelease ()
 
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)
 

Detailed Description

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.

Definition at line 47 of file clmesh.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void CLMesh::copyValuesFromObject ( const CLMesh mesh)
protectedvirtual

Definition at line 68 of file clmesh.cpp.

CArray< CLPolygon > * CLMesh::fixPolygonsArray ( std::vector< CLPolygon > *  polygons_array)

This method recenters object's origin, it also scales down the object (if needed)

Definition at line 180 of file clmesh.cpp.

template<class T >
CArray<T>* CLMesh::getLocationsArrayHavingIndicesArray ( CArray< T > *  locations_array,
CArray< int > *  indices_array 
)
inline

Definition at line 76 of file clmesh.h.

CLPolygon CLMesh::getPolygonForTrianglesIndex ( unsigned int  index)

Creates the CLPolygon object for the specified CLTriangle array index

Definition at line 137 of file clmesh.cpp.

CArray< CLPolygon > * CLMesh::getPolygonsArray ( )

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.

CLMesh & CLMesh::operator= ( const CLMesh mesh)

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.


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