|
cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
|
#import <CCTexturePVR.h>
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 |
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.
| - (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
- (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.