#ifndef _GAME1_LOAD_H_ #define _GAME1_LOAD_H_ #define GL3_PROTOTYPES 1 #include "GL3/gl3.h" typedef struct { GLenum format; GLint internalFormat; int width; int height; unsigned char *data; } textureImage; int loadGLTexture(const char *file); textureImage * loadPNG( const char *file ); uint8_t savePNG( const char *file, const unsigned char *data); textureImage * loadJPG( const char *file ); textureImage * loadBMP( const char *file ); void freeTextureImage(textureImage *texture); #endif