From 9963f71b09a919cb37631f6764a7dc1a5fa273f2 Mon Sep 17 00:00:00 2001 From: Schark Date: Thu, 21 Mar 2024 01:10:37 -0700 Subject: Sprite loader foundation --- height-map-display/src/sprites/loader.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 height-map-display/src/sprites/loader.h (limited to 'height-map-display/src/sprites/loader.h') 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 + +typedef struct { + float x, y; + float width, height; + GLuint texture_id; +} Sprite; + +GLuint load_texture(const char* path); + +#endif -- cgit v1.2.3-18-g5258