![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
An open looped line of points. More...
#include <Polyline.hpp>
Public Member Functions | |
Polyline () | |
Constructor. | |
Polyline (Polyline &&) | |
Move constructor. | |
Polyline & | operator= (Polyline &&) |
Move assignment operator. | |
virtual | ~Polyline () |
Destructor. | |
void | create (const meta::vector< glm::vec2 > &points) |
List of points to create a line from. | |
const meta::vector< glm::vec2 > & | points () const |
Get list of points. | |
![]() | |
Shape () | |
Constructor. | |
Shape (Shape &&) | |
Move constructor. | |
Shape & | operator= (Shape &&) |
Move assignment operator. | |
virtual | ~Shape () |
Destructor. | |
unsigned int | mode () const |
Get OpenGL rendering mode. | |
float | width () const |
Get texture width. | |
float | height () const |
Get texture height. | |
VertexArray & | vao () |
Get vertex array object. | |
Private Attributes | |
meta::vector< glm::vec2 > | m_points |
List of points. | |
Additional Inherited Members | |
![]() | |
Colour | m_colour |
Used by all primitives. | |
![]() | |
unsigned int | m_mode |
Type to render i.e. GL_LINES, GL_TRIANGLES, etc. | |
float | m_width |
Cached width. | |
float | m_height |
Cached height. | |
VertexArray | m_vao |
Vertex Array Object. | |
An open looped line of points.
Definition at line 21 of file Polyline.hpp.
galaxy::graphics::Polyline::Polyline | ( | ) |
Constructor.
Definition at line 16 of file Polyline.cpp.
galaxy::graphics::Polyline::Polyline | ( | Polyline && | p | ) |
Move constructor.
Definition at line 23 of file Polyline.cpp.
|
virtual |
Destructor.
Definition at line 40 of file Polyline.cpp.
Move assignment operator.
Definition at line 29 of file Polyline.cpp.
void galaxy::graphics::Polyline::create | ( | const meta::vector< glm::vec2 > & | points | ) |
List of points to create a line from.
points | List of points. Will not close or loop. |
Definition at line 44 of file Polyline.cpp.
|
nodiscard |
Get list of points.
Definition at line 66 of file Polyline.cpp.
|
private |
List of points.
Definition at line 63 of file Polyline.hpp.