#include <CCTexturePVR.h>
Public Member Functions | |
CCTexturePVR () | |
virtual | ~CCTexturePVR () |
bool | initWithContentsOfFile (const char *path) |
initializes a CCTexturePVR with a path More... | |
unsigned int | getName () |
texture id name More... | |
unsigned int | getWidth () |
texture width More... | |
unsigned int | getHeight () |
texture height More... | |
bool | hasAlpha () |
whether or not the texture has alpha More... | |
bool | hasPremultipliedAlpha () |
whether or not the texture has premultiplied alpha More... | |
bool | isForcePremultipliedAlpha () |
whether or not the texture should use hasPremultipliedAlpha instead of global default More... | |
unsigned int | getNumberOfMipmaps () |
how many mipmaps the texture has. More... | |
CCTexture2DPixelFormat | getFormat () |
bool | isRetainName () |
void | setRetainName (bool retainName) |
Public Member Functions inherited from CCObject | |
CCObject (void) | |
virtual | ~CCObject (void) |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
Public Member Functions inherited from CCCopying | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
static CCTexturePVR * | create (const char *path) |
creates and initializes a CCTexturePVR with a path More... | |
Protected Attributes | |
struct CCPVRMipmap | m_asMipmaps [CC_PVRMIPMAP_MAX] |
unsigned int | m_uNumberOfMipmaps |
unsigned int | m_uWidth |
unsigned int | m_uHeight |
GLuint | m_uName |
bool | m_bHasAlpha |
bool | m_bHasPremultipliedAlpha |
bool | m_bForcePremultipliedAlpha |
bool | m_bRetainName |
CCTexture2DPixelFormat | m_eFormat |
const ccPVRTexturePixelFormatInfo * | m_pPixelFormatInfo |
Protected Attributes inherited from CCObject | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
Additional Inherited Members | |
Public Attributes inherited from CCObject | |
unsigned int | m_uID |
int | m_nLuaID |
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 CCTexture2D::generateMipmap on the sheet texture itself (and to save space, save the PVR sprite sheet without mip maps included).
CCTexturePVR | ( | ) |
|
virtual |
|
static |
creates and initializes a CCTexturePVR with a path
|
inline |
|
inline |
texture height
|
inline |
texture id name
|
inline |
how many mipmaps the texture has.
1 means one level (level 0
|
inline |
texture width
|
inline |
whether or not the texture has alpha
|
inline |
whether or not the texture has premultiplied alpha
bool initWithContentsOfFile | ( | const char * | path) |
initializes a CCTexturePVR with a path
|
inline |
whether or not the texture should use hasPremultipliedAlpha instead of global default
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |