improve memory cleanup
still bad tho. we leak a-lot. idrc it's a testing repo.
This commit is contained in:
parent
6d6bac8ca1
commit
0f9f72af4e
3 changed files with 22 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue