WIP: GUI Toolkit

This commit is contained in:
2015-03-09 01:11:13 +01:00
parent ffbc59140a
commit 9d7dd452c7
24 changed files with 1003 additions and 134 deletions

View File

@@ -7,14 +7,12 @@
#include "objectParser.hh"
#include "VBOManager.hh"
class Program;
class Object {
public:
Object(VBOManager& vboManager, std::vector<objVertexAttribs> const& vas,
std::vector<uint16_t> indices, Program& prog);
Object(std::vector<objVertexAttribs> const& vas,
std::vector<uint16_t> indice);
Object(VBOManager& vboManager, std::string const& filename, Program& prog);
Object(std::string const& filename);
Object(Object const& copy) = delete;
@@ -22,14 +20,12 @@ public:
Object& operator=(Object const& copy) = delete;
void draw(glm::mat4 const& modelview, Program *override = nullptr) const;
void draw() const;
private:
void construct(std::vector<objVertexAttribs> const& vas);
VBOManager& _vboManager;
VBOManager::VBOAlloc _vbo;
Program& _prog;
std::vector<uint16_t> _indices;
gl::GLuint _vaID;
};