Represents a 2D camera with position, rotation, and zoom control.
glm::mat4 GetProjectionMatrix() const
Returns the current orthographic projection matrix.
const glm::mat4 & GetWorldView() const
Gets the world-view (model) matrix for the camera.
SceneComponent2D & GetTransform()
Access to the underlying SceneComponent2D (transform).
Drawable2D(RenderResourceContext renderContext)
Constructs the Drawable2D with a resource context.
void Update(float deltaTime) override
Updates model matrix (and any other logic).
void Initialize() override
Initializes render resources.
std::unique_ptr< IRenderResources > mRenderResources
PackedMaterialData mMaterialParameters
void Initialize() override
Initializes render resource pointers (material, mesh, etc.). Must be called after setting material an...
void Update(float deltaTime) override
Updates logic (animation, movement, etc.) for this drawable.
Quad2D(RenderResourceContext renderContext)
Constructs the Quad2D with a render context.
void Draw(const Camera2D &camera) override
Submits this quad to the renderer for drawing.
const glm::mat4 & GetModelMatrix() const
Gets the model matrix for this component.
Aggregates pointers to global rendering resource managers.