cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
Public Member Functions | Static Public Member Functions | Properties
CCTexturePVR Class Reference

#import <CCTexturePVR.h>

List of all members.

Public Member Functions

(id) - initWithContentsOfFile:
(id) - initWithContentsOfURL:

Static Public Member Functions

(id) + pvrTextureWithContentsOfFile:
(id) + pvrTextureWithContentsOfURL:

Properties

GLuint name
uint32_t width
uint32_t height
BOOL hasAlpha

Detailed Description

CCTexturePVR

Object that loads PVR images.

Supported PVR formats:

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 generateMipmap (CCTexture2D) on the sheet texture itself (and to save space, save the PVR sprite sheet without mip maps included).

Definition at line 88 of file CCTexturePVR.h.


Member Function Documentation

- (id) initWithContentsOfFile: (NSString *)  path

initializes a CCTexturePVR with a path

- (id) initWithContentsOfURL: (NSURL *)  url

initializes a CCTexturePVR with an URL

+ (id) pvrTextureWithContentsOfFile: (NSString *)  path

creates and initializes a CCTexturePVR with a path

+ (id) pvrTextureWithContentsOfURL: (NSURL *)  url

creates and initializes a CCTexturePVR with an URL


Property Documentation

- (BOOL) hasAlpha [read, assign]

whether or not the texture has alpha

Definition at line 119 of file CCTexturePVR.h.

- (uint32_t) height [read, assign]

texture height

Definition at line 117 of file CCTexturePVR.h.

- (GLuint) name [read, assign]

texture id name

Definition at line 113 of file CCTexturePVR.h.

- (uint32_t) width [read, assign]

texture width

Definition at line 115 of file CCTexturePVR.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone API Reference - Generated using Doxygen 1.7.4