GLKit Constants

No overview available.

Topics

Constants

GLKTextureLoaderApplyPremultiplication

This key specifies whether the data in the image should be premultiplied before being loaded into the sharegroup. The value for this key is an NSNumber object that specifies a boolean value. If NO, the data is loaded into the sharegroup without being modified. If YES, the red, green and blue components of each pixel are multiplied by the alpha value. If the key is not specified, the default value is NO. Never specify YES for a texture that is in a compressed format.

GLKTextureLoaderErrorDomain

The error domain used by GLKit when returning texture loading errors.

Deprecated
GLKTextureLoaderErrorKey

A key used to retrieve an error string from an error object’s userInfo dictionary.

Deprecated
GLKTextureLoaderGLErrorKey

A key used to retrieve additional information from an error object’s userInfo dictionary.

Deprecated
GLKTextureLoaderGenerateMipmaps

This key specifies whether mipmaps should be created for the texture. The value for this key is an NSNumber object that specifies a boolean value. If NO, only the texture is loaded. If YES, a full set of mipmap levels are generated for the texture when the texture is created. The GL_TEXTURE_MIN_FILTER parameter for the texture is changed to GL_LINEAR_MIPMAP_LINEAR when mipmaps are generated. If the key is not specified, the default value is NO.

GLKTextureLoaderGrayscaleAsAlpha

This key specifies whether the image data in a grayscale image should be treated as alpha information. The value for this key is an NSNumber object that specifies a boolean value. If NO, the image data is treated as luminance data. If YES, the image data is treated as alpha data. The default value is NO. This key is ignored if the source image is not a grayscale image.

GLKTextureLoaderOriginBottomLeft

This key specifies whether the image data should be vertically flipped to match OpenGL’s coordinate system. The value for this key is an NSNumber object that specifies a boolean value. If NO, the image data is not flipped. If YES, the image data is flipped before being loaded. If the key is not specified, the default value is NO.

GLKTextureLoaderSRGB

This key specifies whether the image data in the texture should be treated as sRGB data. The value for this key is an NSNumber object that specifies a boolean value. If NO, the image data is treated as linear pixel data. If YES, the image data is treated as sRGB pixel data. The default value is NO.

Deprecated