Lines Matching defs:type

191 static int32_t convertGLPixelFormat(GLint format, GLenum type)
202 switch (type) {
215 static GLenum validFormatType(ogles_context_t* c, GLenum format, GLenum type)
221 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 &&
222 type != GL_UNSIGNED_SHORT_5_5_5_1 && type != GL_UNSIGNED_SHORT_5_6_5) {
225 if (type == GL_UNSIGNED_SHORT_5_6_5 && format != GL_RGB) {
228 if ((type == GL_UNSIGNED_SHORT_4_4_4_4 ||
229 type == GL_UNSIGNED_SHORT_5_5_5_1) && format != GL_RGBA) {
356 GLenum format, GLenum type, GLsizei width, GLsizei height,
360 const int32_t formatIdx = convertGLPixelFormat(format, type);
1063 GLenum type;
1068 type = GL_UNSIGNED_BYTE;
1073 type = GL_UNSIGNED_BYTE;
1078 type = GL_UNSIGNED_SHORT_5_6_5;
1083 type = GL_UNSIGNED_SHORT_4_4_4_4;
1088 type = GL_UNSIGNED_SHORT_5_5_5_1;
1093 type = GL_UNSIGNED_BYTE;
1117 level, format, type, width, height);
1144 i, format, type, lod_w, lod_h);
1158 GLenum format, GLenum type, const GLvoid *pixels)
1173 if (validFormatType(c, format, type)) {
1180 level, format, type, width, height);
1187 const int32_t formatIdx = convertGLPixelFormat(format, type);
1226 GLenum format, GLenum type, const GLvoid *pixels)
1237 if (validFormatType(c, format, type)) {
1265 const int32_t formatIdx = convertGLPixelFormat(format, type);
1320 GLenum type = GL_UNSIGNED_BYTE;
1325 type = GL_UNSIGNED_SHORT_5_6_5;
1328 type = GL_UNSIGNED_SHORT_5_5_5_1;
1331 type = GL_UNSIGNED_SHORT_4_4_4_4;
1338 type = GL_UNSIGNED_BYTE;
1373 level, format, type, width, height);
1471 GLenum format, GLenum type, GLvoid *pixels)
1478 if ((type != GL_UNSIGNED_BYTE) && (type != GL_UNSIGNED_SHORT_5_6_5)) {
1492 if ((format == GL_RGBA) && (type == GL_UNSIGNED_BYTE)) {
1494 } else if ((format == GL_RGB) && (type == GL_UNSIGNED_SHORT_5_6_5)) {