CC3PVRTextureContent Class Reference
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.
Tasks
-
textureID
property -
size
property -
pixelFormat
property -
pixelType
property -
hasMipmap
property -
hasPremultipliedAlpha
property -
isTexture2D
property -
isTextureCube
property -
– initFromFile:
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
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