Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::Wireframe Class Reference

#include <Wireframe.hpp>

Classes

struct  Edge
 
class  Factory
 

Public Member Functions

 Wireframe (const std::filesystem::path &filepath)
 
 Wireframe (const std::vector< Edge > &edges)
 
 Wireframe (const Wireframe &other)=delete
 
Wireframeoperator= (const Wireframe &other)=delete
 
 Wireframe (Wireframe &&other) noexcept
 
Wireframeoperator= (Wireframe &&other) noexcept
 
 ~Wireframe ()
 
void bind () const
 
void unbind () const
 
GLuint getVAO () const
 
GLuint getVBO () const
 
GLsizei getEdgeCount () const
 

Private Member Functions

void loadFromFile (const std::filesystem::path &filepath)
 
void uploadToGPU (const std::vector< Edge > &edges)
 

Private Attributes

GLuint _vao
 
GLuint _vbo
 
GLsizei _edgeCount
 

Constructor & Destructor Documentation

◆ Wireframe() [1/4]

shkyera::Wireframe::Wireframe ( const std::filesystem::path &  filepath)

◆ Wireframe() [2/4]

shkyera::Wireframe::Wireframe ( const std::vector< Edge > &  edges)

◆ Wireframe() [3/4]

shkyera::Wireframe::Wireframe ( const Wireframe other)
delete

◆ Wireframe() [4/4]

shkyera::Wireframe::Wireframe ( Wireframe &&  other)
noexcept

◆ ~Wireframe()

shkyera::Wireframe::~Wireframe ( )

Member Function Documentation

◆ bind()

void shkyera::Wireframe::bind ( ) const
inline

◆ getEdgeCount()

GLsizei shkyera::Wireframe::getEdgeCount ( ) const
inline

◆ getVAO()

GLuint shkyera::Wireframe::getVAO ( ) const
inline

◆ getVBO()

GLuint shkyera::Wireframe::getVBO ( ) const
inline

◆ loadFromFile()

void shkyera::Wireframe::loadFromFile ( const std::filesystem::path &  filepath)
private

◆ operator=() [1/2]

Wireframe & shkyera::Wireframe::operator= ( const Wireframe other)
delete

◆ operator=() [2/2]

Wireframe & shkyera::Wireframe::operator= ( Wireframe &&  other)
noexcept

◆ unbind()

void shkyera::Wireframe::unbind ( ) const
inline

◆ uploadToGPU()

void shkyera::Wireframe::uploadToGPU ( const std::vector< Edge > &  edges)
private

Member Data Documentation

◆ _edgeCount

GLsizei shkyera::Wireframe::_edgeCount
private

◆ _vao

GLuint shkyera::Wireframe::_vao
private

◆ _vbo

GLuint shkyera::Wireframe::_vbo
private

The documentation for this class was generated from the following files: