CocosSharp icon indicating copy to clipboard operation
CocosSharp copied to clipboard

CCTexture2D load from file will alway be CCSurfaceFormat:Color

Open TruePluto opened this issue 7 years ago • 0 comments

When I use CCTexture2D load a PNG file directly via public CCTexture2D(string file); the CCTexture2D instance's PixelFormat will be set as CCSurfaceFormat:Color
I found that the raw code of the class CCTexture2D use the CCSurfaceFormat:Color as a default value. public static CCSurfaceFormat **DefaultAlphaPixelFormat** = CCSurfaceFormat.Color;

stupid editing style everthing in one line.

TruePluto avatar Jul 09 '18 15:07 TruePluto