27 #include <GLES2/gl2.h>
28 #elif GLES_VERSION == 3
29 #include <GLES3/gl3.h>
31 #error "GLES_VERSION must be defined as either 2 or 3"
77 static void createTexture(
unsigned int width,
unsigned int height,
unsigned int red, GLvoid **textureData);
87 static void createTexture(
unsigned int width,
unsigned int height,
short red,
short **textureData);
102 static void loadData(
const char *filename,
unsigned char **textureData);
111 static void loadPKMData(
const char *filename,
ETCHeader* etcHeader,
unsigned char **textureData);
static void loadPKMData(const char *filename, ETCHeader *etcHeader, unsigned char **textureData)
Load header and texture data from a pkm file into memory.
static void createTexture(unsigned int width, unsigned int height, GLvoid **textureData)
Create a texture using random data.
const GLenum textureFormats[]
GLint GLsizei GLsizei height
static void getCompressedTextureFormats(GLint **textureFormats, int *numberOfTextureFormats)
Uses glGetIntegerv to get the number of compressed texture formats and the formats themselves...
static void deleteTextureData(GLvoid **textureData)
Deletes previously created texture.
GLsizei GLsizei GLchar * source
static void loadCompressedMipmaps(const char *filenameBase, const char *filenameSuffix, GLuint *textureID)
Load compressed mipmaps into memory.
static void reversePixelLine(float *destination, const float *source, int lineWidth)
Copies float pixel data of one line of the image from source to destination in the reverse direction...
unsigned char * textureData
Functions for working with textures.
static void loadData(const char *filename, unsigned char **textureData)
Load texture data from a file into memory.
static bool isETCSupported(bool verbose=false)
Reports whether or not ETC (Ericsson Texture Compression) is supported.
typedef GLuint(GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC)(GLuint count