Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

ThingMesh Class Reference

Mesh Thing for the scenegraph. More...

#include <ThingMesh.h>

Inherits Thing.

Inherited by ThingAnimMesh.

Inheritance diagram for ThingMesh:

Inheritance graph
[legend]
Collaboration diagram for ThingMesh:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThingMesh (void)
 constructor
virtual ~ThingMesh (void)
 destructor
void setMesh (char *filepath, int type)
 set the mesh to the path filepath
chargetMeshPath ()
 get the filepath to the mesh
MiniMeshgetMiniPointer ()
void playAnimation (bool)
void flipYUV (bool)
void doubleSided (bool s)
void computeNormals (bool c)
void lightModel (bool l)
void startAnim ()
void stopAnim ()
void init ()
 write corresponding openGL code for init(), load model
void render ()
 write corresponding openGL code for display() (render mesh)
void setTextureCount (int textureCount)
 set the texture count for this mesh

Public Attributes

Motionmot
bool isLightOn

Protected Attributes

MiniMeshmesh
charmeshpath
int meshtype
bool normals

Detailed Description

Mesh Thing for the scenegraph.

Mesh Thing for the nodes.


Constructor & Destructor Documentation

ThingMesh::ThingMesh void   ) 
 

constructor

ThingMesh::~ThingMesh void   )  [virtual]
 

destructor


Member Function Documentation

void ThingMesh::computeNormals bool  c  )  [inline]
 

void ThingMesh::doubleSided bool  s  )  [inline]
 

void ThingMesh::flipYUV bool   )  [inline]
 

char * ThingMesh::getMeshPath  ) 
 

get the filepath to the mesh

Returns:
path to the mesh

MiniMesh* ThingMesh::getMiniPointer  )  [inline]
 

void ThingMesh::init  )  [virtual]
 

write corresponding openGL code for init(), load model

Reimplemented from Thing.

Reimplemented in ThingAnimMesh.

void ThingMesh::lightModel bool  l  )  [inline]
 

void ThingMesh::playAnimation bool   )  [inline]
 

Reimplemented in ThingAnimMesh.

void ThingMesh::render  )  [virtual]
 

write corresponding openGL code for display() (render mesh)

Reimplemented from Thing.

Reimplemented in ThingAnimMesh.

void ThingMesh::setMesh char filepath,
int  type
 

set the mesh to the path filepath

Parameters:
path to the meshfile
type of the mesh (e.g. MD2 = 1)

void ThingMesh::setTextureCount int  textureCount  ) 
 

set the texture count for this mesh

Parameters:
number of textures

void ThingMesh::startAnim  )  [inline]
 

Reimplemented in ThingAnimMesh.

void ThingMesh::stopAnim  )  [inline]
 

Reimplemented in ThingAnimMesh.


Member Data Documentation

bool ThingMesh::isLightOn
 

MiniMesh* ThingMesh::mesh [protected]
 

char* ThingMesh::meshpath [protected]
 

int ThingMesh::meshtype [protected]
 

Motion* ThingMesh::mot
 

bool ThingMesh::normals [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 17:42:34 2005 for Loud and Proud by doxygen 1.3.8