v2.0.2
Instance Methods | Properties | List of all members
CC3PVRTextureContent Class Reference

#import <CC3PVRTexture.h>

Inheritance diagram for CC3PVRTextureContent:
Inheritance graph
[legend]

Instance Methods

(id) - initFromFile:
 

Properties

BOOL hasMipmap
 
BOOL hasPremultipliedAlpha
 
BOOL isTexture2D
 
BOOL isTextureCube
 
GLenum pixelFormat
 
GLenum pixelType
 
CC3IntSize size
 
GLuint textureID
 

Detailed Description

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

Method Documentation

- (id) initFromFile: (NSString *)  filePath

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

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.

Property Documentation

- (BOOL) hasMipmap
readnonatomicassign

Returns whether this texture contains a mipmap.

- (BOOL) hasPremultipliedAlpha
readnonatomicassign

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

- (BOOL) isTexture2D
readnonatomicassign

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

- (BOOL) isTextureCube
readnonatomicassign

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

- (GLenum) pixelFormat
readnonatomicassign

Returns the pixel format of the texture.

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

- (GLenum) pixelType
readnonatomicassign

Returns the pixel data type.

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

- (CC3IntSize) size
readnonatomicassign

The size of this texture in pixels.

- (GLuint) textureID
readnonatomicassign

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


The documentation for this class was generated from the following file: