124 #define KTX_OPENGL_ES2 1
127 #include "KHR/khrplatform.h"
132 #define GL_APIENTRY APIENTRY
137 #define KTX_GLFUNCPTRS "gl_funcptrs.h"
139 #define KTX_SUPPORT_SIZEDINTERNALFORMATS 1
144 #include <GLES/glext.h>
146 #define KTX_GLFUNCPTRS "gles1_funcptrs.h"
147 #define KTX_SUPPORT_SIZEDINTERNALFORMATS 0
151 #include <GLES2/gl2.h>
152 #include <GLES2/gl2ext.h>
154 #define KTX_GLFUNCPTRS "gles2_funcptrs.h"
155 #define KTX_SUPPORT_SIZEDINTERNALFORMATS 0
158 #error Please #define one of KTX_OPENGL, KTX_OPENGL_ES1, KTX_OPENGL_ES2 as 1
169 #define KTX_ORIENTATION_KEY "KTXorientation"
173 #define KTX_ORIENTATION2_FMT "S=%c,T=%c"
177 #define KTX_ORIENTATION3_FMT "S=%c,T=%c,R=%c"
303 unsigned int* pKvdLen,
unsigned char** ppKvd);
310 ktxLoadTextureN(
const char*
const filename, GLuint* pTexture, GLenum* pTarget,
313 unsigned int* pKvdLen,
unsigned char** ppKvd);
320 ktxLoadTextureM(
const void* bytes, GLsizei size, GLuint* pTexture, GLenum* pTarget,
323 unsigned int* pKvdLen,
unsigned char** ppKvd);
331 GLsizei bytesOfKeyValueData,
const void* keyValueData,
340 GLsizei bytesOfKeyValueData,
const void* keyValueData,
361 unsigned int valueLen,
const void* value);
370 unsigned int* pValueLen,
void** pValue);