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.
void update()
Updates this bounding box.
void setContributesShadows(bool contributesShadows)
Enable/disable contributes shadows.
void setEngine(Engine *engine)
Set engine.
Transform parentTransform
void initialize()
Initialize.
const Color4 & getEffectColorMul() const
BoundingBox worldBoundingBox
void setEnabled(bool enabled)
Set enabled.
void update() override
Update transform.
BoundingBox * getBoundingBox()
const Color4 & getEffectColorAdd() const
bool isContributesShadows()
Matrix4x4 entityTransformMatrix
void setTransform(const Transform &transform) override
From transform.
void updateBoundingBox()
Update bounding volume.
void setPickable(bool pickable)
Set pickable.
void setEffectColorMul(const Color4 &effectColorMul)
Set effect color mul.
void setEffectColorAdd(const Color4 &effectColorAdd)
Set effect color add.
LinesInternal(const string &id, float lineWidth, const vector< Vector3 > &points, const Color4 &color, const vector< Color4 > &colors={}, Texture *texture=nullptr)
Public constructor.
vector< int32_t > * vboIds
void setRenderer(Renderer *renderer)
Set renderer.
BoundingBox * getWorldBoundingBox()
virtual ~LinesInternal()
Destructor.
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.
Vector3 & add(float scalar)
Adds a scalar.
Vector3 & sub(float scalar)
Subtracts a scalar.
#define FORBID_CLASS_COPY(CLASS)