WIP: GUI Toolkit
This commit is contained in:
12
Object.hh
12
Object.hh
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user