26 this->
m_points = std::move(p.m_points);
34 this->
m_points = std::move(p.m_points);
48 meta::vector<unsigned int>
indices;
49 meta::vector<graphics::Vertex>
vertices;
thread_local const float vertices[]
Video.cpp galaxy.
thread_local const unsigned int indices[]
A closed loop line collection of points. I.e. A square, triangle, etc.
virtual ~Polygon()
Destructor.
void create(const meta::vector< glm::vec2 > &points)
Create shape.
meta::vector< glm::vec2 > m_points
List of points.
Polygon & operator=(Polygon &&)
Move assignment operator.
const meta::vector< glm::vec2 > & points() const
Get list of points.
VertexArray m_vao
Vertex Array Object.
Shape & operator=(Shape &&)
Move assignment operator.
unsigned int m_mode
Type to render i.e. GL_LINES, GL_TRIANGLES, etc.
float m_height
Cached height.
float m_width
Cached width.
void buffer(std::span< Vertex > vertices, std::span< unsigned int > indicies)
Create vertex array object.
Represents a single vertex point.
glm::vec2 m_pos
Position..