YourGameLib
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
yourgame::gl::Geometry Class Reference

#include <geometry.h>

Public Member Functions

 ~Geometry ()
 
bool addBuffer (std::string name, GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
 
bool bufferData (std::string name, GLsizeiptr size, const GLvoid *data)
 
bool addShape (std::string name, std::vector< Shape::ArrBufferDescr > arDescrs, std::vector< std::string > arBufferNames, Shape::ElemArrBufferDescr elArDescr, std::string elArBufferName)
 
bool addBufferToShape (std::string shapeName, std::vector< Shape::ArrBufferDescr > arDescrs, std::string bufferName)
 
bool setShapeElArDescr (std::string name, Shape::ElemArrBufferDescr elArDescr)
 
void drawAll () const
 
void drawAllInstanced (GLsizei instancecount) const
 
 Geometry (Geometry const &)=delete
 
Geometryoperator= (Geometry const &)=delete
 

Static Public Member Functions

static Geometrymake ()
 

Constructor & Destructor Documentation

◆ ~Geometry()

yourgame::gl::Geometry::~Geometry ( )

◆ Geometry()

yourgame::gl::Geometry::Geometry ( Geometry const &  )
delete

Member Function Documentation

◆ addBuffer()

bool yourgame::gl::Geometry::addBuffer ( std::string  name,
GLenum  target,
GLsizeiptr  size,
const GLvoid *  data,
GLenum  usage 
)

◆ addBufferToShape()

bool yourgame::gl::Geometry::addBufferToShape ( std::string  shapeName,
std::vector< Shape::ArrBufferDescr arDescrs,
std::string  bufferName 
)

◆ addShape()

bool yourgame::gl::Geometry::addShape ( std::string  name,
std::vector< Shape::ArrBufferDescr arDescrs,
std::vector< std::string >  arBufferNames,
Shape::ElemArrBufferDescr  elArDescr,
std::string  elArBufferName 
)

◆ bufferData()

bool yourgame::gl::Geometry::bufferData ( std::string  name,
GLsizeiptr  size,
const GLvoid *  data 
)

◆ drawAll()

void yourgame::gl::Geometry::drawAll ( ) const

◆ drawAllInstanced()

void yourgame::gl::Geometry::drawAllInstanced ( GLsizei  instancecount) const

◆ make()

Geometry * yourgame::gl::Geometry::make ( )
static

◆ operator=()

Geometry & yourgame::gl::Geometry::operator= ( Geometry const &  )
delete

◆ setShapeElArDescr()

bool yourgame::gl::Geometry::setShapeElArDescr ( std::string  name,
Shape::ElemArrBufferDescr  elArDescr 
)

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