This is a helper class that defines a mesh on the server.
More...
#include <gemmesh.h>
This is a helper class that defines a mesh on the server.
It wraps around some of the loading details.
Definition at line 56 of file gemmesh.h.
Create a new gem Mesh.
This will setup a new mesh and add it to the CS engine.
- Parameters
-
objreg | The main Crystal Space object registry. |
owner | The gemObject that is using this mesh. |
super | The GEM supervisor object. |
iMeshWrapper* gemMesh::GetMesh |
( |
| ) |
|
Get the Crystal Space iMeshWrapper from this.
- Returns
- an iMeshWrapper that is being used.
iMeshFactoryWrapper* gemMesh::LoadMeshFactory |
( |
const char * |
fileName, |
|
|
const char * |
factoryName |
|
) |
| |
Load a mesh factory.
This is called if it can't find the factory in the cached engine list.
- Parameters
-
fileName | The name of the file where the factory is stored. |
factoryName | The name of the factory that is loading. |
- Returns
- An iMeshFactoryWrapper that was loaded. Null if nothing could be loaded.
void gemMesh::MoveMesh |
( |
iSector * |
sector, |
|
|
const float |
yrot, |
|
|
const csVector3 & |
position |
|
) |
| |
Move a mesh.
- Parameters
-
sector | The sector to move in. |
yrot | The Y-axis rotation of the object. |
position | The position to place the mesh. |
void gemMesh::RemoveMesh |
( |
| ) |
|
Removes the mesh from the engine.
bool gemMesh::SetMesh |
( |
const char * |
factoryName, |
|
|
const char * |
fileName |
|
) |
| |
Set a mesh.
- Parameters
-
factoryName | The factory name of the mesh we want to set. |
fileName | The file to load if the factory is not found. |
- Returns
- true If it was successful in setting the mesh.
void gemMesh::SetMesh |
( |
iMeshWrapper * |
newMesh | ) |
|
Set a mesh.
- Parameters
-
newMesh | The Crystal Space mesh wrapper to set in. |
The documentation for this class was generated from the following file: