20 #ifndef GEM_MESH_HEADER 21 #define GEM_MESH_HEADER 27 #include "csutil/scf.h" 28 #include "csutil/weakref.h" 35 struct iMeshFactoryWrapper;
37 struct iObjectRegistry;
83 iMeshFactoryWrapper*
LoadMeshFactory(
const char* fileName,
const char* factoryName);
93 bool SetMesh(
const char* factoryName,
const char* fileName);
107 void SetMesh(iMeshWrapper* newMesh);
121 void MoveMesh(iSector* sector,
const float yrot,
const csVector3 &position);
124 csRef<iMeshWrapper> mesh;
125 iObjectRegistry* objectReg;
126 csWeakRef<iEngine> engine;
gemMesh(iObjectRegistry *objreg, gemObject *owner, GEMSupervisor *super)
Create a new gem Mesh.
iMeshFactoryWrapper * LoadMeshFactory(const char *fileName, const char *factoryName)
Load a mesh factory.
void MoveMesh(iSector *sector, const float yrot, const csVector3 &position)
Move a mesh.
bool SetMesh(const char *factoryName, const char *fileName)
Set a mesh.
A gemObject is any solid, graphical object visible in PS with normal physics and normal collision det...
This class holds the refs to the core factories, etc in CEL.
This is a helper class that defines a mesh on the server.
iMeshWrapper * GetMesh()
Get the Crystal Space iMeshWrapper from this.
void RemoveMesh()
Removes the mesh from the engine.