|
| | Rectangle2D (RenderResourceContext renderContext, Scene &scene, Properties properties) |
| | Constructs the Rectangle2D with a render context. More...
|
| |
| void | Initialize () override |
| | Initializes render resource pointers (material, mesh, etc.). Must be called after setting material and mesh names. More...
|
| |
| void | Update (float deltaTime) override |
| | Updates logic (animation, movement, etc.) for this drawable. More...
|
| |
| void | Draw (const Camera2D &camera) override |
| | Submits this quad to the renderer for drawing. More...
|
| |
| void | SetColor (glm::vec4 color) |
| | Sets color. More...
|
| |
| | Rectangle2D (const Rectangle2D &rhs)=delete |
| |
| Rectangle2D & | operator= (const Rectangle2D &rhs)=delete |
| |
| | Drawable2D (RenderResourceContext renderContext, Scene &scene) |
| | Constructs the Drawable2D with a resource context. More...
|
| |
| void | Initialize () override |
| | Initializes render resources. More...
|
| |
| void | Update (float deltaTime) override |
| | Updates model matrix (and any other logic). More...
|
| |
| virtual void | Draw (const Camera2D &camera)=0 |
| | Submits this quad to the renderer for drawing. More...
|
| |
| void | SetPosition (const glm::vec2 &position) |
| | Sets the quad position in 2D space. More...
|
| |
| void | SetRotation (float angleDegrees) |
| | Sets the quad rotation. More...
|
| |
| void | SetScale (const glm::vec2 &scale) |
| | Sets the quad scale along each axis. More...
|
| |
| const glm::vec2 & | GetPosition () const |
| | Gets the quad position. More...
|
| |
| float | GetRotation () const |
| | Gets the quad rotation angle (degrees). More...
|
| |
| const glm::vec2 & | GetScale () const |
| | Gets the quad scale. More...
|
| |
| SceneComponent2D & | GetTransform () |
| | Access to the underlying SceneComponent2D (transform). More...
|
| |
| const SceneComponent2D & | GetTransform () const |
| |
| void | Destroy () override |
| | Requests destruction of this drawable. More...
|
| |
| | DrawableComponent (RenderResourceContext renderContext, Scene &scene) |
| | Constructs the DrawableComponent with a resource context. More...
|
| |
| virtual | ~DrawableComponent ()=default |
| | Virtual destructor. More...
|
| |
| virtual void | Initialize () |
| | Initializes render resource pointers (material, mesh, etc.). Must be called after setting material and mesh names. More...
|
| |
| virtual void | Update (float deltaTime)=0 |
| | Updates logic (animation, movement, etc.) for this drawable. More...
|
| |
| virtual void | Shutdown () |
| | Releases all render resources owned by this drawable. More...
|
| |
| virtual void | Destroy () |
| | Requests destruction of this drawable. More...
|
| |
| void | UpdateOnTick (bool in) |
| |
| | DrawableComponent (const DrawableComponent &)=delete |
| |
| DrawableComponent & | operator= (const DrawableComponent &)=delete |
| |
2D drawable component for rendering rectangle.
- Note
- Not copyable or assignable.
- See also
- Sprite2D, Quad2D, Drawable2D, DrawableComponent, SceneComponent2D, Camera2D
Definition at line 21 of file rectangle_2d.hpp.