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
-
nametexture id name
property -
widthtexture width
property -
heighttexture height
property -
hasAlphawhether or not the texture has alpha
property -
hasPremultipliedAlphawhether or not the texture has premultiplied alpha
property -
forcePremultipliedAlphawhether or not the texture should use hasPremultipliedAlpha instead of global default
property -
numberOfMipmapshow many mipmaps the texture has. 1 means one level (level 0
property -
retainNameproperty -
formatproperty
Properties
forcePremultipliedAlpha
whether or not the texture should use hasPremultipliedAlpha instead of global default
@property (nonatomic, readonly) BOOL forcePremultipliedAlphaDeclared In
CCTexturePVR.hhasAlpha
whether or not the texture has alpha
@property (nonatomic, readonly) BOOL hasAlphaDeclared In
CCTexturePVR.hhasPremultipliedAlpha
whether or not the texture has premultiplied alpha
@property (nonatomic, readonly) BOOL hasPremultipliedAlphaDeclared In
CCTexturePVR.h