class csThing : public csPolygonSet A Thing is a polygonset just like a csSector
| | CacheLightMaps () Cache the lightmaps for all polygons in this thing |
| | CalculateLighting (csLightView& lview) Update all lighting on this thing for the given light |
| | CheckFlags (ULong to_check) Check if all the given flags are set. |
| | CreateLightMaps (IGraphics3D* g3d) Create all mipmaps for all textures for all polygons of this thing |
| | csThing () Create an empty thing |
| | Draw (csRenderView& rview, bool use_z_buf = true) Draw this thing given a view and transformation |
| | DrawCurves (csRenderView& rview, bool use_z_buf = true) Draw all curves in this thing given a view and transformation |
| | DrawFoggy (csRenderView& rview) Draw this thing as a fog volume (only when fog is enabled for this thing) |
| | GetCenter () If this thing is convex you can use getCenter to get the index of the vertex holding the center of this thing |
| | GetFlags () Get flags. |
| | InitLightMaps (bool do_cache = true) Init the lightmaps for all polygons in this thing |
| | IntersectSphere (csVector3& center, float radius, float* pr = NULL) Intersects world-space sphere with polygons of this set |
| | Merge (csThing* other) Merge the given Thing into this one |
| | MergeTemplate (csThingTemplate* tpl, csTextureHandle* default_texture = NULL, float default_texlen = 1, CLights* default_lightx = NULL, csVector3* shift = NULL, csMatrix3* transform = NULL) Add polygons and vertices from the specified template |
| | Move (csVector3& v) Relative move |
| | Move (float dx, float dy, float dz) Relative move |
| | SetConvex (bool c) Set convexity flag of this thing |
| | SetFlags (ULong mask, ULong value) Set all flags with the given mask. |
| | SetMove (csSector* home, float x, float y, float z) Set the transformation vector and sector to move thing to some position |
| | SetMove (csSector* home, csVector3& v) Set the transformation vector and sector to move thing to some position |
| | SetTransform (const csReversibleTransform& t) Set the world to object tranformation |
| | SetTransform (const csMatrix3& matrix) Set the transformation matrix to rotate the thing in some orientation |
| | Transform (csMatrix3& matrix) Relative transform |
| | Transform () Really do the transformation |
| | ~csThing () Destructor. |
| | center_idx If convex, this holds the index to the center vertex. |
| | flags Set of flags |
| | home Where is this thing located? |
| | obj World to object transformation. |
| | other OBSOLETE. |
A Thing is a polygonset just like a csSector. It can be used to augment the sectors with features that are difficult to describe using portals and sectors.Things can also be used for volumetric fog. In that case the Thing must be convex.
csSector* other
csReversibleTransform obj
ULong flags
int center_idx
csThing()
virtual ~csThing()
void SetFlags(ULong mask, ULong value)
ULong GetFlags()
bool CheckFlags(ULong to_check)
void SetConvex(bool c)
int GetCenter()
void Merge(csThing* other)
void SetMove(csSector* home, csVector3& v)
void SetMove(csSector* home, float x, float y, float z)
void SetTransform(const csMatrix3& matrix)
void SetTransform(const csReversibleTransform& t)
void Move(float dx, float dy, float dz)
void Move(csVector3& v)
void Transform(csMatrix3& matrix)
void Transform()
void CreateLightMaps(IGraphics3D* g3d)
void Draw(csRenderView& rview, bool use_z_buf = true)
void DrawCurves(csRenderView& rview, bool use_z_buf = true)
void DrawFoggy(csRenderView& rview)
void InitLightMaps(bool do_cache = true)
void CalculateLighting(csLightView& lview)
void CacheLightMaps()
csPolygon3D* IntersectSphere(csVector3& center, float radius, float* pr = NULL)
void MergeTemplate(csThingTemplate* tpl, csTextureHandle* default_texture = NULL, float default_texlen = 1, CLights* default_lightx = NULL, csVector3* shift = NULL, csMatrix3* transform = NULL)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de