Texture2D.PixelFormat 枚举
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.
索引
RGB565
RGB5A1
RGBA4444
RGB888
RGBA8888
RGBA32F
A8
I8
AI88
RGB_PVRTC_2BPPV1
RGBA_PVRTC_2BPPV1
RGB_PVRTC_4BPPV1
RGBA_PVRTC_4BPPV1
Details
RGB565
16-bit texture without Alpha channel
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:67 |
RGB5A1
16-bit textures: RGB5A1
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:74 |
RGBA4444
16-bit textures: RGBA4444
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:81 |
RGB888
24-bit texture: RGB888
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:88 |
RGBA8888
32-bit texture: RGBA8888
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:95 |
RGBA32F
32-bit float texture: RGBA32F
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:102 |
A8
8-bit textures used as masks
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:109 |
I8
8-bit intensity texture
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:116 |
AI88
16-bit textures used as masks
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:123 |
RGB_PVRTC_2BPPV1
rgb 2 bpp pvrtc
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:131 |
RGBA_PVRTC_2BPPV1
rgba 2 bpp pvrtc
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:138 |
RGB_PVRTC_4BPPV1
rgb 4 bpp pvrtc
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:145 |
RGBA_PVRTC_4BPPV1
rgba 4 bpp pvrtc
meta | description |
---|---|
类型 | Number |
定义于 | cocos2d/core/assets/CCTexture2D.js:152 |