73 DecalInternal::setRenderer(
renderer);
77 DecalInternal::initialize();
81 DecalInternal::dispose();
85 return DecalInternal::isEnabled();
96 return DecalInternal::getBoundingBox();
100 return DecalInternal::getWorldBoundingBox();
104 return DecalInternal::getEffectColorAdd();
112 return DecalInternal::getEffectColorMul();
119 inline const string&
getId()
override {
120 return DecalInternal::getId();
124 return DecalInternal::isContributesShadows();
132 return DecalInternal::isReceivesShadows();
140 return DecalInternal::isPickable();
144 DecalInternal::setPickable(
pickable);
225 return DecalInternal::getDecalTexture();
232 return DecalInternal::getWorldToDecalSpaceMatrix();
Color 4 definition class.
Decal entity to be used with engine class.
BoundingBox * getBoundingBox() override
const Vector3 & getTranslation() const override
const Transform & getTransform() const override
RenderPass getRenderPass() const override
void dispose() override
Dispose this entity.
void setTranslation(const Vector3 &translation) override
Set translation.
void removeRotation(const int idx) override
Remove rotation.
Rotation & getRotation(const int idx) override
Get rotation at given index.
const int getRotationCount() const override
const Vector3 & getRotationAxis(const int idx) const override
Decal(const string &id, OrientedBoundingBox *obb, Texture *texture=nullptr, int32_t textureHorizontalSprites=1, int32_t textureVerticalSprites=1, float fps=10.0f)
Public constructor.
void initialize() override
Initiates this entity.
bool isReceivesShadows() override
void setRenderPass(RenderPass renderPass) override
Set render pass.
void setReceivesShadows(bool receivesShadows) override
Enable/disable receives shadows.
const Matrix4x4 & getWorldToDecalSpaceMatrix()
void addRotation(const Vector3 &axis, const float angle) override
Add rotation.
void update() override
Update transform.
void setPickable(bool pickable) override
Set this entity pickable.
void setEffectColorMul(const Color4 &effectColorMul) override
Set effect color that will be multiplied with fragment color.
bool isPickable() override
void setTransform(const Transform &transform) override
Set transform.
Texture * getDecalTexture()
const Quaternion & getRotationsQuaternion() const override
void setScale(const Vector3 &scale) override
Set scale.
bool isContributesShadows() override
const Vector3 & getScale() const override
const float getRotationAngle(const int idx) const override
BoundingBox * getWorldBoundingBox() override
const Color4 & getEffectColorMul() const override
The effect color will be multiplied with fragment color.
void setFrustumCulling(bool frustumCulling) override
Set frustum culling.
void setEngine(Engine *engine) override
Set up engine.
void setEnabled(bool enabled) override
Enable/disable rendering.
const Transform & getParentTransform() const override
const Matrix4x4 & getTransformMatrix() const override
const string & getId() override
EntityType getEntityType() override
void setContributesShadows(bool contributesShadows) override
Enable/disable contributes shadows.
void setRotationAxis(const int idx, const Vector3 &axis) override
Set rotation axis.
bool isFrustumCulling() override
bool isEnabled() override
void setEffectColorAdd(const Color4 &effectColorAdd) override
Set effect color that will be added to fragment color.
const Color4 & getEffectColorAdd() const override
The effect color will be added to fragment color.
void setParentTransform(const Transform &parentTransform) override
Set parent transform.
void setRenderer(Renderer *renderer) override
Set up renderer.
void setRotationAngle(const int idx, const float angle) override
Axis aligned bounding box used for frustum, this is not directly connectable with physics engine.
Oriented bounding box physics primitive.
OrientedBoundingBox * obb
Transform parentTransform
int32_t textureHorizontalSprites
int32_t textureVerticalSprites
Matrix4x4 entityTransformMatrix
Matrix4x4 class representing matrix4x4 mathematical structure and operations for 3d space.
Quaternion class representing quaternion mathematical structure and operations with x,...
Vector3 class representing vector3 mathematical structure and operations with x, y,...
#define FORBID_CLASS_COPY(CLASS)