mirror of https://github.com/axmolengine/axmol.git
issue #151: change the function name
This commit is contained in:
parent
93135d1366
commit
556b8ed455
|
@ -44,7 +44,7 @@ typedef struct _ccColor3B
|
|||
static inline ccColor3B
|
||||
ccc3(const GLubyte r, const GLubyte g, const GLubyte b)
|
||||
{
|
||||
ccColor3B c = CCXRGBATransform::transformRGBA(r, g, b);
|
||||
ccColor3B c = CCXRGBATransform::transformRGB(r, g, b);
|
||||
return c;
|
||||
}
|
||||
//ccColor3B predefined colors
|
||||
|
|
|
@ -39,7 +39,7 @@ ccColor4B CCXRGBATransform::transformRGBA(const GLubyte r, const GLubyte g, cons
|
|||
return c4;
|
||||
}
|
||||
|
||||
ccColor3B CCXRGBATransform::transformRGBA(const GLubyte r, const GLubyte g, const GLubyte b)
|
||||
ccColor3B CCXRGBATransform::transformRGB(const GLubyte r, const GLubyte g, const GLubyte b)
|
||||
{
|
||||
#ifdef _TRANZDA_VM_
|
||||
ccColor3B c3 = {r, g, b};
|
||||
|
|
|
@ -35,7 +35,7 @@ class CCX_DLL CCXRGBATransform
|
|||
{
|
||||
public:
|
||||
static struct _ccColor4B transformRGBA(const GLubyte r, const GLubyte g, const GLubyte b, const GLubyte a);
|
||||
static struct _ccColor3B transformRGBA(const GLubyte r, const GLubyte g, const GLubyte b);
|
||||
static struct _ccColor3B transformRGB(const GLubyte r, const GLubyte g, const GLubyte b);
|
||||
};
|
||||
|
||||
} // end of namespace cocos2d
|
||||
|
|
Loading…
Reference in New Issue