20#ifndef YOURGAME_GLGEOMETRY_H
21#define YOURGAME_GLGEOMETRY_H
39 bool addBuffer(std::string name, GLenum target, GLsizeiptr size,
const GLvoid *data, GLenum usage);
40 bool bufferData(std::string name, GLsizeiptr size,
const GLvoid *data);
42 std::vector<Shape::ArrBufferDescr> arDescrs,
43 std::vector<std::string> arBufferNames,
45 std::string elArBufferName);
47 std::vector<Shape::ArrBufferDescr> arDescrs,
48 std::string bufferName);
61 std::map<std::string, Buffer *> m_buffers;
62 std::map<std::string, Shape *> m_shapes;
bool addBuffer(std::string name, GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
Definition geometry.cpp:44
Geometry(Geometry const &)=delete
void drawAllInstanced(GLsizei instancecount) const
Definition geometry.cpp:137
bool addShape(std::string name, std::vector< Shape::ArrBufferDescr > arDescrs, std::vector< std::string > arBufferNames, Shape::ElemArrBufferDescr elArDescr, std::string elArBufferName)
Definition geometry.cpp:69
bool bufferData(std::string name, GLsizeiptr size, const GLvoid *data)
Definition geometry.cpp:59
bool setShapeElArDescr(std::string name, Shape::ElemArrBufferDescr elArDescr)
Definition geometry.cpp:118
~Geometry()
Definition geometry.cpp:31
Geometry & operator=(Geometry const &)=delete
bool addBufferToShape(std::string shapeName, std::vector< Shape::ArrBufferDescr > arDescrs, std::string bufferName)
Definition geometry.cpp:99
void drawAll() const
Definition geometry.cpp:129
static Geometry * make()
Definition geometry.cpp:26