672{
673 NSCParameterAssert(outFormat != NULL && outInternalFormat != NULL && outType != NULL);
674
675 switch (format)
676 {
678 *outFormat = GL_RGBA;
679 *outInternalFormat = options &
kOOTextureSRGBA ? GL_SRGB_ALPHA : GL_RGBA;
680 *outType = RGBA_IMAGE_TYPE;
681 return YES;
682
685 {
686 *outFormat = GL_ALPHA;
687 *outInternalFormat = GL_ALPHA8;
688 }
689 else
690 {
691 *outFormat = GL_LUMINANCE;
692 *outInternalFormat = GL_LUMINANCE8;
693 }
694 *outType = GL_UNSIGNED_BYTE;
695 return YES;
696
698 *outFormat = GL_LUMINANCE_ALPHA;
699 *outInternalFormat = GL_LUMINANCE8_ALPHA8;
700 *outType = GL_UNSIGNED_BYTE;
701 return YES;
702
703 default:
705 return NO;
706 }
707}
#define OOLog(class, format,...)
NSString *const kOOLogParameterError
@ kOOTextureDataGrayscaleAlpha
@ kOOTextureDataGrayscale