![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
An elliptical circle. More...
#include <Ellipse.hpp>
Inheritance diagram for galaxy::graphics::Ellipse:
Collaboration diagram for galaxy::graphics::Ellipse:Public Member Functions | |
| Ellipse () | |
| Constructor. | |
| Ellipse (Ellipse &&) | |
| Move constructor. | |
| Ellipse & | operator= (Ellipse &&) |
| Move assignment operator. | |
| virtual | ~Ellipse () |
| Destructor. | |
| void | create (const float fragments, const glm::vec2 &radii) |
| Create the ellipse. | |
| float | fragments () const |
| Get fragments. | |
| const glm::vec2 & | radii () const |
| Get radii. | |
Public Member Functions inherited from galaxy::graphics::Shape | |
| 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 |
| Number of points used to create shape. | |
| glm::vec2 | m_radii |
| Radius of ellipse. | |
Additional Inherited Members | |
Public Attributes inherited from galaxy::graphics::Shape | |
| Colour | m_colour |
| Used by all primitives. | |
Protected Attributes inherited from galaxy::graphics::Shape | |
| 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 elliptical circle.
Definition at line 20 of file Ellipse.hpp.
| galaxy::graphics::Ellipse::Ellipse | ( | ) |
Constructor.
Definition at line 20 of file Ellipse.cpp.
| galaxy::graphics::Ellipse::Ellipse | ( | Ellipse && | e | ) |
Move constructor.
Definition at line 28 of file Ellipse.cpp.
|
virtual |
Destructor.
Definition at line 48 of file Ellipse.cpp.
Move assignment operator.
Definition at line 35 of file Ellipse.cpp.
Here is the call graph for this function:| void galaxy::graphics::Ellipse::create | ( | const float | fragments, |
| const glm::vec2 & | radii ) |
Create the ellipse.
| fragments | How many points to use to create the shape. More means smoother edge. |
| radii | Ellipse horizontal and vertical radius. |
Definition at line 52 of file Ellipse.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
nodiscard |
Get fragments.
Definition at line 92 of file Ellipse.cpp.
Here is the caller graph for this function:
|
nodiscard |
Get radii.
Definition at line 97 of file Ellipse.cpp.
Here is the caller graph for this function:
|
private |
Number of points used to create shape.
Definition at line 71 of file Ellipse.hpp.
|
private |
Radius of ellipse.
Definition at line 76 of file Ellipse.hpp.