SceneComponent2D & GetTransform()
Access to the underlying SceneComponent2D (transform).
Drawable2D(RenderResourceContext renderContext)
Constructs the Drawable2D with a resource context.
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.
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.
void SetScale(const glm::vec2 &scale)
Sets the quad scale along each axis.
const glm::vec2 & GetPosition() const
Gets the quad position.
virtual void Initialize()
Initializes render resource pointers (material, mesh, etc.). Must be called after setting material an...
DrawableComponent(RenderResourceContext renderContext)
Constructs the DrawableComponent with a resource context.
Represents a 2D transformable scene component with position, rotation, and scale.
Aggregates pointers to global rendering resource managers.