34 float offsetX,
float offsetZ,
bool floating)
64 std::unique_ptr<CModelAbstract>
Clone()
const override;
Definition: Material.h:29
Definition: Matrix3D.h:34
Abstract base class for graphical objects that are used by units, or as props attached to other CMode...
Definition: ModelAbstract.h:50
void InvalidatePosition() override
Mark this model's position and bone matrices, and all props' positions as invalid.
Definition: Decal.cpp:72
CModelDecal * ToCModelDecal() override
Dynamic cast.
Definition: Decal.h:59
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.
Definition: Decal.cpp:31
void RemoveShadows()
Definition: Decal.cpp:111
std::unique_ptr< CModelAbstract > Clone() const override
Definition: Decal.cpp:26
void CalcBounds() override
(Re)calculates and stores any bounds or bound-dependent data for this object.
Definition: Decal.cpp:54
CModelDecal(CTerrain *terrain, const SDecal &decal)
Definition: Decal.h:52
CTerrain * m_Terrain
Definition: Decal.h:83
void ValidatePosition() override
Ensure that both the transformation and the bone matrices are correct for this model and all its prop...
Definition: Decal.cpp:77
SDecal m_Decal
Definition: Decal.h:84
void SetTerrainDirty(ssize_t i0, ssize_t j0, ssize_t i1, ssize_t j1) override
Called when terrain has changed in the given inclusive bounds.
Definition: Decal.cpp:61
void SetTransform(const CMatrix3D &transform) override
Definition: Decal.cpp:99
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
Definition: debug.h:277
Terrain decal definition.
Definition: Decal.h:32
float m_Angle
Definition: Decal.h:43
float m_SizeX
Definition: Decal.h:41
float m_OffsetX
Definition: Decal.h:44
SDecal(const CMaterial &material, float sizeX, float sizeZ, float angle, float offsetX, float offsetZ, bool floating)
Definition: Decal.h:33
bool m_Floating
Definition: Decal.h:46
CMaterial m_Material
Definition: Decal.h:40
float m_SizeZ
Definition: Decal.h:42
float m_OffsetZ
Definition: Decal.h:45
intptr_t ssize_t
Definition: wposix_types.h:82