9#include <glm/gtc/constants.hpp>
10#include <glm/trigonometric.hpp>
12#include "galaxy/meta/Memory.hpp"
61 const auto increment = (2.0f * glm::pi<float>()) /
m_fragments;
63 meta::vector<unsigned int>
indices;
64 meta::vector<graphics::Vertex>
vertices;
66 for (
float angle = 0.0f; angle <= (2.0f * glm::pi<float>()); angle += increment)
thread_local const float vertices[]
Video.cpp galaxy.
thread_local const unsigned int indices[]
Circle & operator=(Circle &&)
Move assignment operator.
virtual ~Circle()
Destructor.
float m_fragments
Points making up circumference.
float radius() const
Get radius.
float fragments() const
Get fragments.
void create(const float fragments, const float radius)
Create the circle.
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..