diff options
| author | realtradam <[email protected]> | 2022-11-24 21:44:59 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-11-24 21:44:59 -0500 |
| commit | f2a9e986afe980c6b32f7f40d1fe2b0294d86d90 (patch) | |
| tree | 252b7e7a2a8fa5ff71b1b7953ec9af2492a2ea2d /src/texture.hpp | |
| parent | f0f30c12fe919862ade380513c02c9845598ac46 (diff) | |
| download | Ogle-f2a9e986afe980c6b32f7f40d1fe2b0294d86d90.tar.gz Ogle-f2a9e986afe980c6b32f7f40d1fe2b0294d86d90.zip | |
implemented proper batch rendering of quads and textures
Diffstat (limited to 'src/texture.hpp')
| -rw-r--r-- | src/texture.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/texture.hpp b/src/texture.hpp index 0a9c9e6..f8ceaed 100644 --- a/src/texture.hpp +++ b/src/texture.hpp @@ -4,7 +4,6 @@ class Texture { public: - unsigned int id, VAO, VBO; - Texture(const char* texturePath, unsigned int VAO, unsigned int VBO); - void draw(float x, float y, float width, float height); + unsigned int id; + Texture(const char* texture_path); }; |
