Public Methods |
| csMeshWrapper (iMeshWrapper *theParent, iMeshObject *mesh) |
| Constructor.
|
| csMeshWrapper (iMeshWrapper *theParent) |
| Constructor.
|
void | SetParentContainer (iMeshWrapper *newParent) |
| Set parent container for this object.
|
iMeshWrapper* | GetParentContainer () const |
| Get parent container for this object.
|
void | SetFactory (iMeshFactoryWrapper *factory) |
| Set the mesh factory.
|
iMeshFactoryWrapper* | GetFactory () const |
| Get the mesh factory.
|
void | SetMeshObject (iMeshObject *mesh) |
| Set the mesh object.
|
iMeshObject* | GetMeshObject () const |
| Get the mesh object.
|
void | SetZBufMode (csZBufMode mode) |
| Set the Z-buf drawing mode to use for this object.
|
csZBufMode | GetZBufMode () const |
| Get the Z-buf drawing mode.
|
void | SetDrawCallback (iMeshDrawCallback *cb) |
| Set a callback which is called just before the object is drawn. More...
|
iMeshDrawCallback* | GetDrawCallback () const |
| Get the draw callback.
|
void | MarkVisible () |
| Mark this object as visible.
|
void | MarkInvisible () |
| Mark this object as invisible.
|
bool | IsVisible () const |
| Return if this object is visible.
|
void | UpdateLighting (iLight **lights, int num_lights) |
| Light object according to the given array of lights (i.e. More...
|
void | DeferUpdateLighting (int flags, int num_lights) |
| Update lighting as soon as the object becomes visible. More...
|
void | Draw (iRenderView *rview) |
| Draw this mesh object given a camera transformation. More...
|
bool | WantToDie () |
| Returns true if this object wants to die.
|
csMovable& | GetMovable () |
| Get the movable instance for this object. More...
|
void | PlaceMesh () |
| This routine will find out in which sectors a mesh object is positioned. More...
|
int | HitBeamBBox (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr) |
| Check if this object is hit by this object space vector. More...
|
bool | HitBeamOutline (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr) |
| Check if this object is hit by this object space vector. More...
|
bool | HitBeamObject (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr) |
| Check if this object is hit by this object space vector. More...
|
bool | HitBeam (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr) |
| Check if this object is hit by this world space vector. More...
|
const csMeshMeshList& | GetChildren () const |
| Get the children of this mesh object.
|
void | GetRadius (csVector3 &rad, csVector3 ¢) const |
| Get the radius of this mesh and all its children.
|
void | HardTransform (const csReversibleTransform &t) |
| Do a hard transform of this object. More...
|
void | GetWorldBoundingBox (csBox3 &cbox) |
| Get the bounding box of this object in world space. More...
|
void | GetTransformedBoundingBox (const csReversibleTransform &trans, csBox3 &cbox) |
| Get the bounding box of this object after applying a transformation to it. More...
|
float | GetScreenBoundingBox (const iCamera *camera, csBox2 &sbox, csBox3 &cbox) |
| Get a very inaccurate bounding box of the object in screen space. More...
|
void | SetRenderPriority (long rp) |
| Set the render priority for this object.
|
long | GetRenderPriority () const |
| Get the render priority for this object.
|
| SCF_DECLARE_IBASE_EXT (csObject) |
Public Attributes |
csFlags | flags |
| Set of flags.
|
csMeshWrapper::MeshWrapper | scfiMeshWrapper |
csMeshWrapper::VisObject | scfiVisibilityObject |
Protected Methods |
void | UpdateDeferedLighting (const csVector3 &pos) |
| Update defered lighting.
|
void | MoveToSector (csSector *s) |
| Move this object to the specified sector. Can be called multiple times.
|
void | RemoveFromSectors () |
| Remove this object from all sectors it is in (but not from the engine).
|
void | UpdateMove () |
| Update transformations after the object has moved (through updating the movable instance). More...
|
void | DrawInt (iRenderView *rview) |
| Draw this mesh object given a camera transformation. More...
|
virtual | ~csMeshWrapper () |
| Destructor. More...
|
Protected Attributes |
iMeshWrapper* | Parent |
| The parent mesh object, or NULL.
|
csBox3 | wor_bbox |
| Bounding box in world space. More...
|
long | wor_bbox_movablenr |
| Last used movable number for wor_bbox.
|
int | defered_num_lights |
| Defered lighting. If > 0 then we have defered lighting.
|
int | defered_lighting_flags |
| Flags to use for defered lighting.
|
csTicks | last_anim_time |
| This value indicates the last time that was used to do animation. More...
|
bool | is_visible |
| Flag which is set to true when the object is visible. More...
|
csMovable | movable |
| Position in the world.
|
long | render_priority |
| The renderer will render all objects in a sector based on this number. More...
|
Friends |
class | csMovable |
class | csMovableSectorList |
class | MeshWrapper |
class | VisObject |