1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef TEXTURE_H #define TEXTURE_H #include <GL/glew.h> typedef struct { GLuint ID; GLuint width, height; } texture_t; extern texture_t* Texture_Create( const char* path ); extern void Texture_Destroy( texture_t* texture ); extern void Texture_Bind(texture_t* texture); extern void Texture_Unbind(); #endif // TEXTURE_H