A generic 2D shape.
More...
#include <Shape.hpp>
A generic 2D shape.
Definition at line 21 of file Shape.hpp.
◆ Shape() [1/2]
galaxy::graphics::Shape::Shape |
( |
| ) |
|
◆ Shape() [2/2]
galaxy::graphics::Shape::Shape |
( |
Shape && | s | ) |
|
Move constructor.
Definition at line 23 of file Shape.cpp.
◆ ~Shape()
galaxy::graphics::Shape::~Shape |
( |
| ) |
|
|
virtual |
◆ operator=()
Shape & galaxy::graphics::Shape::operator= |
( |
Shape && | s | ) |
|
Move assignment operator.
Definition at line 32 of file Shape.cpp.
◆ mode()
unsigned int galaxy::graphics::Shape::mode |
( |
| ) |
const |
|
nodiscard |
Get OpenGL rendering mode.
- Returns
- Unsigned int.
Definition at line 50 of file Shape.cpp.
◆ width()
float galaxy::graphics::Shape::width |
( |
| ) |
const |
|
nodiscard |
Get texture width.
Is cached for performance.
- Returns
- Width as float.
Definition at line 55 of file Shape.cpp.
◆ height()
float galaxy::graphics::Shape::height |
( |
| ) |
const |
|
nodiscard |
Get texture height.
Is cached for performance.
- Returns
- Height as float.
Definition at line 60 of file Shape.cpp.
◆ vao()
Get vertex array object.
- Returns
- Const reference to VAO.
Definition at line 65 of file Shape.cpp.
◆ m_colour
Colour galaxy::graphics::Shape::m_colour |
Used by all primitives.
Definition at line 84 of file Shape.hpp.
◆ m_mode
unsigned int galaxy::graphics::Shape::m_mode |
|
protected |
Type to render i.e. GL_LINES, GL_TRIANGLES, etc.
Definition at line 90 of file Shape.hpp.
◆ m_width
float galaxy::graphics::Shape::m_width |
|
protected |
◆ m_height
float galaxy::graphics::Shape::m_height |
|
protected |
◆ m_vao
The documentation for this class was generated from the following files: