Texture2D.PixelFormat Enum

Module: cc

The texture pixel format, default value is RGBA8888, you should note that textures loaded by normal image files (png, jpg) can only support RGBA8888 format, other formats are supported by compressed file types or raw data.

Index

  • RGB565
  • RGB5A1
  • RGBA4444
  • RGB888
  • RGBA8888
  • RGBA32F
  • A8
  • I8
  • AI88
  • RGB_PVRTC_2BPPV1
  • RGBA_PVRTC_2BPPV1
  • RGB_PVRTC_4BPPV1
  • RGBA_PVRTC_4BPPV1
  • RGB_ETC1
  • RGBA_ETC1
  • RGB_ETC2
  • RGBA_ETC2

Details

RGB565

16-bit texture without Alpha channel

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:68
RGB5A1

16-bit textures: RGB5A1

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:75
RGBA4444

16-bit textures: RGBA4444

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:82
RGB888

24-bit texture: RGB888

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:89
RGBA8888

32-bit texture: RGBA8888

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:96
RGBA32F

32-bit float texture: RGBA32F

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:103
A8

8-bit textures used as masks

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:110
I8

8-bit intensity texture

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:117
AI88

16-bit textures used as masks

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:124
RGB_PVRTC_2BPPV1

rgb 2 bpp pvrtc

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:132
RGBA_PVRTC_2BPPV1

rgba 2 bpp pvrtc

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:139
RGB_PVRTC_4BPPV1

rgb 4 bpp pvrtc

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:146
RGBA_PVRTC_4BPPV1

rgba 4 bpp pvrtc

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:153
RGB_ETC1

rgb etc1

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:160
RGBA_ETC1

rgba etc1

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:167
RGB_ETC2

rgb etc2

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:176
RGBA_ETC2

rgba etc2

meta description
Type Number
Defined in cocos2d/core/assets/CCTexture2D.js:183

results matching ""

    No results matching ""