some effc++ fixes

This commit is contained in:
2015-01-23 15:43:06 +01:00
parent 701ccce857
commit 05bf47c678
5 changed files with 34 additions and 19 deletions

View File

@@ -21,9 +21,13 @@ public:
construct(std::get<0>(tmp));
}
Object(Object const& copy) = delete;
~Object() {
glDeleteVertexArrays(1, &_vaID);
}
Object& operator=(Object const& copy) = delete;
void draw(glm::mat4 const& modelview, Program *override = nullptr) const {
glBindVertexArray(_vaID);