improve memory cleanup

still bad tho. we leak a-lot. idrc it's a testing repo.
This commit is contained in:
k
2025-05-27 22:38:56 -04:00
parent 6d6bac8ca1
commit 0f9f72af4e
3 changed files with 22 additions and 5 deletions

View File

@@ -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;