/** Returns a ccColor4F from a ccColor4B. @since v0.99.1 */ public static ccColor4F ccc4FFromccc4B(ccColor4B c) { ccColor4F c4 = new ccColor4F(c.r / 255.0f, c.g / 255.0f, c.b / 255.0f, c.a / 255.0f); return c4; }
/** returns YES if both ccColor4F are equal. Otherwise it returns NO. @since v0.99.1 */ public static bool ccc4FEqual(ccColor4F a, ccColor4F b) { return a.r == b.r && a.g == b.g && a.b == b.b && a.a == b.a; }
public ccV2F_C4F_T2F() { vertices = new ccVertex2F(); colors = new ccColor4F(); texCoords = new ccTex2F(); }