summaryrefslogtreecommitdiffhomepage
path: root/src/texture.hpp
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-11-21 19:12:51 -0500
committerrealtradam <[email protected]>2022-11-21 19:12:51 -0500
commitf0f30c12fe919862ade380513c02c9845598ac46 (patch)
treed742b6a932ec9f7e7edc00372316429d19ef6da1 /src/texture.hpp
parent35d550df84ede11e7e2cd07c491944222491cd0e (diff)
downloadOgle-f0f30c12fe919862ade380513c02c9845598ac46.tar.gz
Ogle-f0f30c12fe919862ade380513c02c9845598ac46.zip
abstracted textures
Diffstat (limited to 'src/texture.hpp')
-rw-r--r--src/texture.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/texture.hpp b/src/texture.hpp
new file mode 100644
index 0000000..0a9c9e6
--- /dev/null
+++ b/src/texture.hpp
@@ -0,0 +1,10 @@
+#pragma once
+#include "glad/glad.h"
+
+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);
+};