![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
A circle. More...
#include <Circle.hpp>
Public Member Functions | |
Circle () | |
Constructor. | |
Circle (Circle &&) | |
Move constructor. | |
Circle & | operator= (Circle &&) |
Move assignment operator. | |
virtual | ~Circle () |
Destructor. | |
void | create (const float fragments, const float radius) |
Create the circle. | |
float | fragments () const |
Get fragments. | |
float | radius () const |
Get radius. | |
![]() | |
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 | |
float | m_fragments |
Points making up circumference. | |
float | m_radius |
Radius. | |
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. | |
A circle.
Definition at line 20 of file Circle.hpp.
galaxy::graphics::Circle::Circle | ( | ) |
Constructor.
Definition at line 20 of file Circle.cpp.
galaxy::graphics::Circle::Circle | ( | Circle && | c | ) |
Move constructor.
Definition at line 28 of file Circle.cpp.
|
virtual |
Destructor.
Definition at line 48 of file Circle.cpp.
Move assignment operator.
Definition at line 35 of file Circle.cpp.
void galaxy::graphics::Circle::create | ( | const float | fragments, |
const float | radius ) |
Create the circle.
fragments | Number of points to use. Higher number means smoother shape. |
radius | Radius of circle. |
Definition at line 52 of file Circle.cpp.
|
nodiscard |
Get fragments.
Definition at line 83 of file Circle.cpp.
|
nodiscard |
Get radius.
Definition at line 88 of file Circle.cpp.
|
private |
Points making up circumference.
Definition at line 71 of file Circle.hpp.
|
private |
Radius.
Definition at line 76 of file Circle.hpp.