diff options
Diffstat (limited to 'src/texture.h')
-rw-r--r-- | src/texture.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/texture.h b/src/texture.h new file mode 100644 index 0000000..66566be --- /dev/null +++ b/src/texture.h @@ -0,0 +1,12 @@ +#pragma once +#include <glad/glad.h> + +typedef struct { + GLuint id; +} Texture; + +[[nodiscard]] +/* Return -1 on error. */ +int texture_init(Texture *this, const char *img_path); + +void texture_deinit(Texture *this); |