Class CCTexturePVR

#include <Geode/cocos/textures/CCTexturePVR.h>
classCCTexturePVR:publiccocos2d::CCObject{ ... }

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).
Examples0
Public static methods1
staticcocos2d::CCTexturePVR*create()

creates and initializes a CCTexturePVR with a path

Public member functions11
boolinitWithContentsOfFile()

initializes a CCTexturePVR with a path

uintgetName()

texture id name

uintgetWidth()

texture width

uintgetHeight()

texture height

boolhasAlpha()

whether or not the texture has alpha

boolhasPremultipliedAlpha()

whether or not the texture has premultiplied alpha

boolisForcePremultipliedAlpha()

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

uintgetNumberOfMipmaps()

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

cocos2d::CCTexture2DPixelFormatgetFormat()
No description provided
boolisRetainName()
No description provided
voidsetRetainName(
boolretainName
)
No description provided
Fields0
Protected member functions0
Protected fields11
;
No description provided
uintm_uNumberOfMipmaps
;
No description provided
uintm_uWidth
;
No description provided
uintm_uHeight
;
No description provided
_::GLuintm_uName
;
No description provided
boolm_bHasAlpha
;
No description provided
boolm_bHasPremultipliedAlpha
;
No description provided
boolm_bForcePremultipliedAlpha
;
No description provided
boolm_bRetainName
;
No description provided
;
No description provided
;
No description provided