18 #ifndef INCLUDED_DECAL
19 #define INCLUDED_DECAL
35 float offsetX,
float offsetZ,
bool floating)
92 #endif // INCLUDED_DECAL
virtual void InvalidatePosition()
Mark this model's position and bone matrices, and all props' positions as invalid.
virtual void SetTerrainDirty(ssize_t i0, ssize_t j0, ssize_t i1, ssize_t j1)
Called when terrain has changed in the given inclusive bounds.
virtual CModelAbstract * Clone() const
virtual CModelDecal * ToCModelDecal()
Dynamic cast.
CModelDecal(CTerrain *terrain, const SDecal &decal)
void SetDirty(u32 dirtyflags)
void CalcVertexExtents(ssize_t &i0, ssize_t &j0, ssize_t &i1, ssize_t &j1)
Compute the terrain vertex indexes that bound the decal's projection onto the terrain.
Terrain decal definition.
SDecal(const CMaterial &material, float sizeX, float sizeZ, float angle, float offsetX, float offsetZ, bool floating)
Abstract base class for graphical objects that are used by units, or as props attached to other CMode...
virtual void SetTransform(const CMatrix3D &transform)
virtual void CalcBounds()
(Re)calculates and stores any bounds or bound-dependent data for this object.
virtual void ValidatePosition()
Ensure that both the transformation and the bone matrices are correct for this model and all its prop...
virtual void SetDirtyRec(int dirtyflags)
Calls SetDirty on this model and all child objects.