summaryrefslogtreecommitdiff
path: root/height-map-display/src/sprites/loader.h
diff options
context:
space:
mode:
authorSchark <jordan@schark.online>2024-03-21 01:10:37 -0700
committerSchark <jordan@schark.online>2024-03-21 01:10:37 -0700
commit9963f71b09a919cb37631f6764a7dc1a5fa273f2 (patch)
treec6a4c645916083ef9ae79167554446a6c5cadfaa /height-map-display/src/sprites/loader.h
parentaf03f388cbcff795158ea8345b5c876470229e8b (diff)
downloadgamedev-9963f71b09a919cb37631f6764a7dc1a5fa273f2.tar.gz
gamedev-9963f71b09a919cb37631f6764a7dc1a5fa273f2.zip
Sprite loader foundationHEADmaster
Diffstat (limited to 'height-map-display/src/sprites/loader.h')
-rw-r--r--height-map-display/src/sprites/loader.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/height-map-display/src/sprites/loader.h b/height-map-display/src/sprites/loader.h
new file mode 100644
index 0000000..5f3a35e
--- /dev/null
+++ b/height-map-display/src/sprites/loader.h
@@ -0,0 +1,14 @@
+#ifndef LOADER_H
+#define LOADER_H
+
+#include <GL/glew.h>
+
+typedef struct {
+ float x, y;
+ float width, height;
+ GLuint texture_id;
+} Sprite;
+
+GLuint load_texture(const char* path);
+
+#endif