25 DecalInternal::DecalInternal(
const string&
id,
OrientedBoundingBox* obb,
Texture* texture, int32_t textureHorizontalSprites, int32_t textureVerticalSprites,
float fps)
45 this->texture =
texture !=
nullptr?
texture:TextureReader::read(
"resources/engine/textures",
"point.png");
Color 4 definition class.
void set(float r, float g, float b, float a)
Sets this color by its components.
Axis aligned bounding box used for frustum, this is not directly connectable with physics engine.
const Vector3 & getCenter() const
Oriented bounding box physics primitive.
const Vector3 & getHalfExtension() const
const array< Vector3, 3 > & getAxes() const
OrientedBoundingBox * obb
Transform parentTransform
void initialize()
Initialize.
int32_t textureHorizontalSprites
void update() override
Update transform.
int32_t textureVerticalSprites
Matrix4x4 entityTransformMatrix
void setTransform(const Transform &transform) override
From transform.
virtual ~DecalInternal()
Destructor.
void updateInternal()
Update bounding volume and obb matrix with transform and finally world to decal space matrix.
Matrix4x4 & identity()
Creates identity matrix.
Matrix4x4 & setAxes(const Vector3 &xAxis, const Vector3 &yAxis, const Vector3 &zAxis)
Set coordinate system axes.
Matrix4x4 & setTranslation(const Vector3 &translation)
Set translation.
virtual void releaseReference()
Releases a reference, thus decrementing the counter and delete it if reference counter is zero.