38 float offsetX,
float offsetZ,
bool floating)
68 std::unique_ptr<CModelAbstract>
Clone()
const override;
Definition: Material.h:32
Definition: Matrix3D.h:36
Abstract base class for graphical objects that are used by units, or as props attached to other CMode...
Definition: ModelAbstract.h:56
void InvalidatePosition() override
Mark this model's position and bone matrices, and all props' positions as invalid.
Definition: Decal.cpp:81
CModelDecal * ToCModelDecal() override
Dynamic cast.
Definition: Decal.h:63
void RemoveShadowsReceive()
Definition: Decal.cpp:120
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:40
std::unique_ptr< CModelAbstract > Clone() const override
Definition: Decal.cpp:35
void CalcBounds() override
(Re)calculates and stores any bounds or bound-dependent data for this object.
Definition: Decal.cpp:63
CModelDecal(CTerrain *terrain, const SDecal &decal)
Definition: Decal.h:56
CTerrain * m_Terrain
Definition: Decal.h:87
void ValidatePosition() override
Ensure that both the transformation and the bone matrices are correct for this model and all its prop...
Definition: Decal.cpp:86
SDecal m_Decal
Definition: Decal.h:88
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:70
void SetTransform(const CMatrix3D &transform) override
Definition: Decal.cpp:108
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
Definition: debug.h:222
Terrain decal definition.
Definition: Decal.h:36
float m_Angle
Definition: Decal.h:47
float m_SizeX
Definition: Decal.h:45
float m_OffsetX
Definition: Decal.h:48
SDecal(const CMaterial &material, float sizeX, float sizeZ, float angle, float offsetX, float offsetZ, bool floating)
Definition: Decal.h:37
bool m_Floating
Definition: Decal.h:50
CMaterial m_Material
Definition: Decal.h:44
float m_SizeZ
Definition: Decal.h:46
float m_OffsetZ
Definition: Decal.h:49
intptr_t ssize_t
Definition: wposix_types.h:36