20 Wireframe(
const std::filesystem::path& filepath);
21 Wireframe(
const std::vector<Edge>& edges);
32 void unbind()
const { glBindVertexArray(0); }
51 void loadFromFile(
const std::filesystem::path& filepath);
Definition Wireframe.hpp:38
static Wireframe createCube()
Definition Wireframe.cpp:114
static Wireframe createCylinder()
Definition Wireframe.cpp:138
static Wireframe createSphere()
Definition Wireframe.cpp:171
static Wireframe create(Type type)
Definition Wireframe.cpp:97
Type
Definition Wireframe.hpp:40
Definition Wireframe.hpp:11
GLuint getVBO() const
Definition Wireframe.hpp:35
void loadFromFile(const std::filesystem::path &filepath)
Definition Wireframe.cpp:42
void uploadToGPU(const std::vector< Edge > &edges)
Definition Wireframe.cpp:74
~Wireframe()
Definition Wireframe.cpp:37
GLuint _vao
Definition Wireframe.hpp:54
void unbind() const
Definition Wireframe.hpp:32
GLuint getVAO() const
Definition Wireframe.hpp:34
GLsizei getEdgeCount() const
Definition Wireframe.hpp:36
GLsizei _edgeCount
Definition Wireframe.hpp:55
Wireframe(const Wireframe &other)=delete
Wireframe & operator=(const Wireframe &other)=delete
GLuint _vbo
Definition Wireframe.hpp:54
void bind() const
Definition Wireframe.hpp:31
Definition Wireframe.hpp:13
Edge(const glm::vec3 &s, const glm::vec3 &e)
Definition Wireframe.hpp:17
glm::vec3 end
Definition Wireframe.hpp:15
glm::vec3 start
Definition Wireframe.hpp:14