]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/texture.h
77375752ffef545265d95e3194a20f41ce83c019
[dragonblocks_alpha.git] / src / client / texture.h
1 #ifndef _TEXTURE_H_
2 #define _TEXTURE_H_
3
4 #include <GL/glew.h>
5 #include <GL/gl.h>
6
7 typedef struct
8 {
9         GLuint id;
10         int width, height;
11 } Texture;
12
13 Texture *texture_create(unsigned char *data, int width, int height, GLenum format, bool mipmap);
14 GLuint texture_create_cubemap(char *path);
15 void texture_delete(Texture *texture);
16 Texture *texture_load(char *path, bool mipmap);
17
18 #endif