aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/graphics/texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgl/graphics/texture.h')
-rw-r--r--include/mgl/graphics/texture.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mgl/graphics/texture.h b/include/mgl/graphics/texture.h
index 669be1e..7048c20 100644
--- a/include/mgl/graphics/texture.h
+++ b/include/mgl/graphics/texture.h
@@ -1,6 +1,8 @@
#ifndef MGL_TEXTURE_H
#define MGL_TEXTURE_H
+typedef struct mgl_texture mgl_texture;
+
typedef enum {
MGL_TEXTURE_GRAY = 1,
MGL_TEXTURE_GRAY_ALPHA = 2,
@@ -8,12 +10,12 @@ typedef enum {
MGL_TEXTURE_RGB_ALPHA = 4
} mgl_texture_format;
-typedef struct {
+struct mgl_texture {
unsigned int id;
int width;
int height;
mgl_texture_format format;
-} mgl_texture;
+};
int mgl_texture_load_from_file(mgl_texture *self, const char *filepath);
void mgl_texture_unload(mgl_texture *self);