|
cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
#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) |
| NA. More... | |
| 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) |
| CCObject (const CCObject &) | |
| CCObject & | operator= (const CCObject &) |
| virtual void | encodeWithCoder (DS_Dictionary *) |
| virtual bool | canEncode () |
| CCObjectType | getObjType () const |
| virtual int | getTag () const |
| virtual void | setTag (int nTag) |
| void | setObjType (CCObjectType) |
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... | |
Static Public Member Functions inherited from CCObject | |
| static CCObject * | createWithCoder (DS_Dictionary *) |
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 |
| int | m_nTag |
| int | m_eObjType |
| unsigned int | m_uObjectIdxInArray |
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). NA NA
| 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 |