Inherits from NSObject
Declared in CC3PVRTexture.h
CC3PVRTexture.mm

Overview

A helper class used by the CC3PVRTexture class cluster during the loading of a texture from a PVR file using the PowerVR library.

Properties

hasMipmap

Returns whether this texture contains a mipmap.

@property (nonatomic, readonly) BOOL hasMipmap

Declared In

CC3PVRTexture.h

hasPremultipliedAlpha

Returns whether the alpha channel of this texture has already been multiplied into each of the RGB color channels.

@property (nonatomic, readonly) BOOL hasPremultipliedAlpha

Declared In

CC3PVRTexture.h

isTexture2D

Returns whether this texture is a standard two-dimentional texture.

@property (nonatomic, readonly) BOOL isTexture2D

Declared In

CC3PVRTexture.h

isTextureCube

Returns whether this texture is a six-sided cube-map texture.

@property (nonatomic, readonly) BOOL isTextureCube

Declared In

CC3PVRTexture.h

pixelFormat

Returns the pixel format of the texture.

@property (nonatomic, readonly) GLenum pixelFormat

Discussion

See the pixelFormat property of CC3Texture for the range of possible values.

Declared In

CC3PVRTexture.h

pixelType

Returns the pixel data type.

@property (nonatomic, readonly) GLenum pixelType

Discussion

Possible values depend on the value of the pixelFormat property. See the pixelType property of CC3Texture for the range of possible values.

Declared In

CC3PVRTexture.h

size

The size of this texture in pixels.

@property (nonatomic, readonly) CC3IntSize size

Declared In

CC3PVRTexture.h

textureID

The texture ID used to identify this texture to the GL engine.

@property (nonatomic, readonly) GLuint textureID

Declared In

CC3PVRTexture.h

Instance Methods

initFromFile:

Initializes this instance by loaded content from the specified PVR file.

- (id)initFromFile:(NSString *)filePath

Discussion

The specified file path may be either an absolute path, or a path relative to the application resource directory. If the file is located directly in the application resources directory, the specified file path can simply be the name of the file.

Returns nil if the file could not be loaded.

Declared In

CC3PVRTexture.h