17 : m_mode {GL_TRIANGLES}
25 this->
m_vao = std::move(s.m_vao);
26 this->
m_colour = std::move(s.m_colour);
36 this->
m_vao = std::move(s.m_vao);
37 this->
m_colour = std::move(s.m_colour);
virtual ~Shape()
Destructor.
Colour m_colour
Used by all primitives.
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 height() const
Get texture height.
VertexArray & vao()
Get vertex array object.
unsigned int mode() const
Get OpenGL rendering mode.
float m_height
Cached height.
float m_width
Cached width.
float width() const
Get texture width.
Abstraction for OpenGL vertex array objects.