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

Properties

forcePremultipliedAlpha

whether or not the texture should use hasPremultipliedAlpha instead of global default

@property (nonatomic, readonly) BOOL forcePremultipliedAlpha

Declared In

CCTexturePVR.h

format

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

height

texture height

@property (nonatomic, readonly) uint32_t height

Declared In

CCTexturePVR.h

name

texture id name

@property (nonatomic, readonly) GLuint name

Declared In

CCTexturePVR.h

numberOfMipmaps

how many mipmaps the texture has. 1 means one level (level 0

@property (nonatomic, readonly) NSUInteger numberOfMipmaps

Declared In

CCTexturePVR.h

retainName

width

texture width

@property (nonatomic, readonly) uint32_t width

Declared In

CCTexturePVR.h

Class Methods

pvrTextureWithContentsOfFile:

creates and initializes a CCTexturePVR with a path

+ (id)pvrTextureWithContentsOfFile:(NSString *)path

Declared In

CCTexturePVR.h

pvrTextureWithContentsOfURL:

creates and initializes a CCTexturePVR with an URL

+ (id)pvrTextureWithContentsOfURL:(NSURL *)url

Declared In

CCTexturePVR.h

Instance Methods

initWithContentsOfFile:

initializes a CCTexturePVR with a path

- (id)initWithContentsOfFile:(NSString *)path

Declared In

CCTexturePVR.h

initWithContentsOfURL:

initializes a CCTexturePVR with an URL

- (id)initWithContentsOfURL:(NSURL *)url

Declared In

CCTexturePVR.h