Lines Matching refs:hdr
324 Header hdr;
325 hdr.fGLType = 0;
326 hdr.fGLTypeSize = 1;
327 hdr.fGLFormat = 0;
328 hdr.fGLInternalFormat = GR_GL_COMPRESSED_RGB8_ETC1;
329 hdr.fGLBaseInternalFormat = GR_GL_RGB;
330 hdr.fPixelWidth = width;
331 hdr.fPixelHeight = height;
332 hdr.fNumberOfArrayElements = 0;
333 hdr.fNumberOfFaces = 1;
334 hdr.fNumberOfMipmapLevels = 1;
339 hdr.fBytesOfKeyValueData = 0;
342 if (!stream->write(&hdr, sizeof(hdr))) {
381 Header hdr;
393 hdr.fGLType = GR_GL_UNSIGNED_BYTE;
394 hdr.fGLTypeSize = 1;
395 hdr.fGLFormat = GR_GL_RED;
396 hdr.fGLInternalFormat = GR_GL_R8;
397 hdr.fGLBaseInternalFormat = GR_GL_RED;
401 hdr.fGLType = GR_GL_UNSIGNED_SHORT_5_6_5;
402 hdr.fGLTypeSize = 2;
403 hdr.fGLFormat = GR_GL_RGB;
404 hdr.fGLInternalFormat = GR_GL_RGB;
405 hdr.fGLBaseInternalFormat = GR_GL_RGB;
409 hdr.fGLType = GR_GL_UNSIGNED_SHORT_4_4_4_4;
410 hdr.fGLTypeSize = 2;
411 hdr.fGLFormat = GR_GL_RGBA;
412 hdr.fGLInternalFormat = GR_GL_RGBA4;
413 hdr.fGLBaseInternalFormat = GR_GL_RGBA;
418 hdr.fGLType = GR_GL_UNSIGNED_BYTE;
419 hdr.fGLTypeSize = 1;
420 hdr.fGLFormat = GR_GL_RGBA;
421 hdr.fGLInternalFormat = GR_GL_RGBA8;
422 hdr.fGLBaseInternalFormat = GR_GL_RGBA;
428 hdr.fPixelWidth = width;
429 hdr.fPixelHeight = height;
430 hdr.fNumberOfArrayElements = 0;
431 hdr.fNumberOfFaces = 1;
432 hdr.fNumberOfMipmapLevels = 1;
435 hdr.fBytesOfKeyValueData = 0;
443 hdr.fBytesOfKeyValueData += kvsize;
447 if (!stream->write(&hdr, sizeof(hdr))) {