295 auto now = Time::getCurrentMillis();
Color 4 definition class.
Axis aligned bounding box used for frustum, this is not directly connectable with physics engine.
void fromBoundingVolumeWithTransformMatrix(BoundingBox *original, const Matrix4x4 &transformMatrix)
Create bounding volume from given original(of same type) with applied transform matrix.
Oriented bounding box physics primitive.
void setContributesShadows(bool contributesShadows)
Enable/disable contributes shadows.
OrientedBoundingBox * obb
void setEngine(Engine *engine)
Set engine.
Transform parentTransform
void initialize()
Initialize.
const Color4 & getEffectColorMul() const
BoundingBox worldBoundingBox
int32_t textureHorizontalSprites
void setEnabled(bool enabled)
Set enabled.
const Matrix4x4 & getWorldToDecalSpaceMatrix()
void update() override
Update transform.
BoundingBox * getBoundingBox()
const Color4 & getEffectColorAdd() const
int32_t textureVerticalSprites
bool isContributesShadows()
Matrix4x4 entityTransformMatrix
void setTransform(const Transform &transform) override
From transform.
virtual ~DecalInternal()
Destructor.
DecalInternal(const string &id, OrientedBoundingBox *obb, Texture *texture=nullptr, int32_t textureHorizontalSprites=1, int32_t textureVerticalSprites=1, float fps=10.0f)
Public constructor.
void setPickable(bool pickable)
Set pickable.
void setEffectColorMul(const Color4 &effectColorMul)
Set effect color mul.
void setEffectColorAdd(const Color4 &effectColorAdd)
Set effect color add.
int32_t getTextureVerticalSprites()
Texture * getDecalTexture()
Matrix4x4 worldToDecalSpaceMatrix
void setRenderer(Renderer *renderer)
Set renderer.
int32_t getTextureHorizontalSprites()
int32_t computeTextureSpriteIdx()
BoundingBox * getWorldBoundingBox()
void updateInternal()
Update bounding volume and obb matrix with transform and finally world to decal space matrix.
void setReceivesShadows(bool receivesShadows)
Enable/disable receives shadows.
void setParentTransform(const Transform &parentTransform)
Set parent transform.
Matrix4x4 class representing matrix4x4 mathematical structure and operations for 3d space.
Matrix4x4 clone() const
Clones this matrix.
Vector3 multiply(const Vector3 &vector3) const
Multiplies this matrix with vector3.
Matrix4x4 & invert()
Inverts this matrix.
#define FORBID_CLASS_COPY(CLASS)