CCTexturePVR Class Reference
Inherits from | NSObject |
Declared in | CCTexturePVR.h |
Overview
CCTexturePVR
Object that loads PVR images.
Supported PVR formats:
- RGBA8888
- BGRA8888
- RGBA4444
- RGBA5551
- RGB565
- A8
- I8
- AI88
- PVRTC 4BPP
- PVRTC 2BPP
Limitations:
Pre-generated mipmaps, such as PVR textures with mipmap levels embedded in file,
are only supported if all individual sprites are of _square_ size.
To use mipmaps with non-square textures, instead call CCTexture2D#generateMipmap on the sheet texture itself
(and to save space, save the PVR sprite sheet without mip maps included).
Tasks
-
– initWithContentsOfFile:
initializes a CCTexturePVR with a path
-
– initWithContentsOfURL:
initializes a CCTexturePVR with an URL
-
+ pvrTextureWithContentsOfFile:
creates and initializes a CCTexturePVR with a path
-
+ pvrTextureWithContentsOfURL:
creates and initializes a CCTexturePVR with an URL
-
name
texture id name
property -
width
texture width
property -
height
texture height
property -
hasAlpha
whether or not the texture has alpha
property -
hasPremultipliedAlpha
whether or not the texture has premultiplied alpha
property -
forcePremultipliedAlpha
whether or not the texture should use hasPremultipliedAlpha instead of global default
property -
numberOfMipmaps
how many mipmaps the texture has. 1 means one level (level 0
property -
retainName
property -
format
property
Properties
forcePremultipliedAlpha
whether or not the texture should use hasPremultipliedAlpha instead of global default
@property (nonatomic, readonly) BOOL forcePremultipliedAlpha
Declared In
CCTexturePVR.h
hasAlpha
whether or not the texture has alpha
@property (nonatomic, readonly) BOOL hasAlpha
Declared In
CCTexturePVR.h
hasPremultipliedAlpha
whether or not the texture has premultiplied alpha
@property (nonatomic, readonly) BOOL hasPremultipliedAlpha
Declared In
CCTexturePVR.h