Texture2D.PixelFormat Enum

Module: cc Parent Module: cc

The texture pixel format, default value is RGBA8888

Index

  • RGB565
  • RGB5A1
  • RGBA4444
  • RGB888
  • RGBA8888
  • A8
  • I8
  • AI88

Details

RGB565

16-bit texture without Alpha channel, not supported yet

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:80
RGB5A1

16-bit textures: RGB5A1, not supported yet

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:87
RGBA4444

16-bit textures: RGBA4444, not supported yet

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:94
RGB888

24-bit texture: RGB888, not supported yet

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:101
RGBA8888

32-bit texture: RGBA8888

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:108
A8

8-bit textures used as masks, not supported yet

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:115
I8

8-bit intensity texture, not supported yet

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:122
AI88

16-bit textures used as masks, not supported yet

meta description
Type Number
Defined in https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/textures/CCTexture2D.js:129

results matching ""

    No results matching ""