14 #include "ETCHeader.h"
17 #include <GLES2/gl2.h>
18 #elif GLES_VERSION == 3
19 #include <GLES3/gl3.h>
21 #error "GLES_VERSION must be defined as either 2 or 3"
57 static void createTexture(
unsigned int width,
unsigned int height, GLvoid **textureData);
67 static void createTexture(
unsigned int width,
unsigned int height,
unsigned int red, GLvoid **textureData);
82 static void loadData(
const char *filename,
unsigned char **textureData);
91 static void loadPKMData(
const char *filename,
ETCHeader* etcHeader,
unsigned char **textureData);
105 static void loadCompressedMipmaps(
const char *filenameBase,
const char *filenameSuffix, GLuint *textureID);