]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/texture.h
c339c7037e91c4ab827d7bc1675f4eab55f985cf
[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);
14 GLuint texture_create_cubemap(char *path);
15 void texture_delete(Texture *texture);
16 Texture *texture_get(char *path);
17
18 #endif