Class

GLKTextureInfo

Information about OpenGL textures created by the GLKTextureLoader class.

Overview

When your app loads textures using the GLKTextureLoader class, the texture loader returns information about the textures using GLKTextureInfo objects. Your app never creates GLKTextureInfo objects directly.

Topics

Reading Texture Information

var name: GLuint

The OpenGL context’s name for the texture.

var target: GLenum

The OpenGL binding target for the texture.

var height: GLuint

The height of the loaded texture.

var width: GLuint

The width of the loaded texture.

var textureOrigin: GLKTextureInfoOrigin

The location of the origin in the loaded texture.

var alphaState: GLKTextureInfoAlphaState

The state of the alpha component in the loaded texture.

var containsMipmaps: Bool

A Boolean value that states whether the loaded texture contains mip maps.

Constants

enum GLKTextureInfoAlphaState

Values that describe the alpha information stored in a source image’s pixel data.

enum GLKTextureInfoOrigin

The location of the origin in the original source image.

Relationships

Inherits From

See Also

Texture Loading

class GLKTextureLoader

A utility class that simplifies loading OpenGL or OpenGL ES texture datas from a variety of image file formats.