CocosSharp
CocosSharp copied to clipboard
CCTexture2D load from file will alway be CCSurfaceFormat:Color
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.