]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/texture.h
Redesign file structure and graphics pipeline; add font rendering
[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 void texture_delete(Texture *texture);
15 Texture *texture_get(char *path);
16
17 #endif