improve memory cleanup
still bad tho. we leak a-lot. idrc it's a testing repo.
This commit is contained in:
@@ -13,11 +13,13 @@ public:
|
||||
void setPosition(glm::vec3 p);
|
||||
void setScale(glm::vec3 s);
|
||||
void setRotation(glm::quat r);
|
||||
void setOwned(bool o);
|
||||
void setOwnedBuffers(bool o);
|
||||
void setOwnedShader(bool o);
|
||||
Shader *getShader();
|
||||
|
||||
private:
|
||||
bool buffersOwned;
|
||||
bool shaderOwned;
|
||||
int count;
|
||||
unsigned int VAO;
|
||||
Shader *shader;
|
||||
|
||||
Reference in New Issue
Block a user