SceneComponent2D & GetTransform()
Access to the underlying SceneComponent2D (transform).
const glm::vec2 & GetScale() const
Gets the quad scale.
void Update(float deltaTime) override
Updates model matrix (and any other logic).
SceneComponent2D mSceneComponent
void Initialize() override
Initializes render resources.
void Destroy() override
Requests destruction of this drawable.
float GetRotation() const
Gets the quad rotation angle (degrees).
void SetPosition(const glm::vec2 &position)
Sets the quad position in 2D space.
void SetRotation(float angleDegrees)
Sets the quad rotation.
Drawable2D(RenderResourceContext renderContext, Scene &scene)
Constructs the Drawable2D with a resource context.
void SetScale(const glm::vec2 &scale)
Sets the quad scale along each axis.
const glm::vec2 & GetPosition() const
Gets the quad position.
Abstract base for all drawable (renderable) objects in the engine.
virtual void Initialize()
Initializes render resource pointers (material, mesh, etc.). Must be called after setting material an...
Represents a hierarchical 2D transform component.
const glm::vec2 & GetScale() const
Gets the current scale.
void UpdateWorldMatrix()
Recomputes the world transformation matrix.
const glm::vec2 & GetPosition() const
Gets the current position.
void SetScale(const glm::vec2 &scale)
Sets the scale in each dimension.
float GetRotation() const
Gets the current rotation angle (in degrees).
void SetRotation(float angleDegrees)
Sets the rotation angle in degrees.
void SetPosition(const glm::vec2 &position)
Sets the local position of this component.
Base class representing a renderable scene.
void DestroyDrawable2D(Drawable2D *drawable2D)
Schedules a 2D drawable for deferred destruction.
Aggregates pointers to global rendering resource managers.