CCTexturePixelFormat Constants Reference
Declared in | CCTexture.h |
---|
CCTexturePixelFormat
Possible texture pixel formats. Used by various rendering components, including CCTexture, CCRenderTexture, CCEffectNode.
Definition
typedef NS_ENUM(NSUInteger, CCTexturePixelFormat ) {
CCTexturePixelFormat_RGBA8888,
CCTexturePixelFormat_RGB888,
CCTexturePixelFormat_RGB565,
CCTexturePixelFormat_A8,
CCTexturePixelFormat_I8,
CCTexturePixelFormat_AI88,
CCTexturePixelFormat_RGBA4444,
CCTexturePixelFormat_RGB5A1,
CCTexturePixelFormat_PVRTC4,
CCTexturePixelFormat_PVRTC2,
CCTexturePixelFormat_BGRA8888,
CCTexturePixelFormat_Default = CCTexturePixelFormat_RGBA8888,
};
Constants
CCTexturePixelFormat_RGBA8888
-
! 32-bit texture: RGBA8888
Declared In
CCTexture.h
. CCTexturePixelFormat_RGB888
-
! 32-bit texture without Alpha channel. Don’t use it.
Declared In
CCTexture.h
. CCTexturePixelFormat_RGB565
-
! 16-bit texture without Alpha channel
Declared In
CCTexture.h
. CCTexturePixelFormat_A8
-
! 8-bit textures used as masks
Declared In
CCTexture.h
. CCTexturePixelFormat_I8
-
! 8-bit intensity texture
Declared In
CCTexture.h
. CCTexturePixelFormat_AI88
-
! 16-bit textures used as masks
Declared In
CCTexture.h
. CCTexturePixelFormat_RGBA4444
-
! 16-bit textures: RGBA4444
Declared In
CCTexture.h
. CCTexturePixelFormat_RGB5A1
-
! 16-bit textures: RGB5A1
Declared In
CCTexture.h
. CCTexturePixelFormat_PVRTC4
-
! 4-bit PVRTC-compressed texture: PVRTC4
Declared In
CCTexture.h
. CCTexturePixelFormat_PVRTC2
-
! 2-bit PVRTC-compressed texture: PVRTC2
Declared In
CCTexture.h
. CCTexturePixelFormat_BGRA8888
-
! 32-bit texture: BGRA8888
Declared In
CCTexture.h
. CCTexturePixelFormat_Default
-
! Default texture format: RGBA8888
Declared In
CCTexture.h
.
Declared In
CCTexture.h