75 LinesInternal::setRenderer(
renderer);
79 LinesInternal::initialize();
83 LinesInternal::dispose();
87 return LinesInternal::isEnabled();
100 return LinesInternal::getBoundingBox();
104 return LinesInternal::getWorldBoundingBox();
108 return LinesInternal::getEffectColorAdd();
116 return LinesInternal::getEffectColorMul();
123 inline const string&
getId()
override {
124 return LinesInternal::getId();
128 return LinesInternal::isContributesShadows();
136 return LinesInternal::isReceivesShadows();
144 return LinesInternal::isPickable();
148 LinesInternal::setPickable(
pickable);
Color 4 definition class.
Lines 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
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.
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.
const Quaternion & getRotationsQuaternion() const override
void setScale(const Vector3 &scale) override
Set scale.
bool isContributesShadows() override
Lines(const string &id, float lineWidth, const vector< Vector3 > &points, const Color4 &color, const vector< Color4 > &colors={}, Texture *texture=nullptr)
Public constructor.
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
Representation of a 3D model.
Axis aligned bounding box used for frustum, this is not directly connectable with physics engine.
Transform parentTransform
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)