ccColor3BRGB byte型颜色结构体,构造方法,常量定义
typedef
struct
ccColor3B{r,g,b}
static
inline
ccColor3B ccc3(r,b)
static
const
ccColor3B ccWHITE = {255,255,255}
static
const
ccColor3B ccYELLOW = {255,0};
static
const
ccColor3B ccBLUE = {0,255};
static
const
ccColor3B ccGREEN = {0,0};
static
const
ccColor3B ccRED = {255,0};
static
const
ccColor3B ccMAGENTA = {255,255};
static
const
ccColor3B ccBLACK = {0,0};
static
const
ccColor3B ccORANGE = {255,127,0};
static
const
ccColor3B ccGRAY = {166,166,166};
|
ccColor4BRGBA字节颜色结构体,构造方法
typedef
struct
ccColor4B{r,b,a}
static
inline
ccColor4B ccc4(r,a)
|
ccColor4FRGBA浮点颜色结构体,sans-serif; line-height:21.600000381469727px">
typedef
struct
ccColor4F{r,a}
static
inline
ccColor4F ccc4f(r,a)
static
inline
ccColor4F ccc4FFromccc3B(ccColor3B c)
static
inline
ccColor4F ccc4FFromccc4B(ccColor4B c)
static
inline
BOOL
ccc4FEqual(ccColor4F a,ccColor4F b)
|
ccVertex2F/3F浮点数 顶点坐标结构体
typedef
struct
ccVertex2F{x,y}
typedef
struct
ccVertex3F{x,y,z}
|
ccTex2F浮点数 纹理坐标结构体
typedef
struct
ccTex2F{u,v}
|
ccPointSprite
typedef
struct
ccPointSprite{pos,color,size}
|
ccQuad2/3
typedef
struct
ccQuad2
{
ccVertex2F tl,
ccVertex2F tr,
ccVertex2F bl,
ccVertex2F br
}
typedef
struct
ccQuad3
{
ccVertex3F tl,
ccVertex3F tr,
ccVertex3F bl,
ccVertex3F br
}
|
ccGridSize
typedef
struct
ccGridSize{x,y}
static
inline
ccGridSize ccg(x,y)
|
ccV2F_C4B/F_T2F
typedef
struct
ccV2F_C4B_T2F{
ccVertex2F vertices;
ccColor4B colors;
ccTex2F texCoords;
}
typedef
struct
ccV2F_C4F_T2F{
ccVertex2F vertices;
ccColor4F colors;
ccTex2F texCoords;
}
|
ccV3/2F_C4F/B_T2F_Quad
typedef
struct
ccV2F_C4B_T2F_Quad
{
ccV2F_C4B_T2F bl;
ccV2F_C4B_T2F br;
ccV2F_C4B_T2F tl;
ccV2F_C4B_T2F tr;
}
typedef
struct
ccV3F_C4B_T2F_Quad
{
ccV3F_C4B_T2F bl;
ccV3F_C4B_T2F br;
ccV3F_C4B_T2F tl;
ccV3F_C4B_T2F tr;
}
typedef
struct
ccV3F_C4f_T2F_Quad
{
ccV3F_C4f_T2F bl;
ccV3F_C4f_T2F br;
ccV3F_C4f_T2F tl;
ccV3F_C4f_T2F tr;
}
|
ccBlendFunc混合函数
typedef
struct
ccBlendFunc
{
GLenum src;
GLenum dst;
}
|
ccResolutionType分辨率参数
typedef
enum
{
kCCResolutionUnknown,
kCCResolutionIPhone,
kCCResolutionIPhoneRetinaDisplay,
kCCResolutionIPad,
kCCResolutionIpadRetinaDisplay,
} ccResolutionType
|
CCVerticalTextAlignment文本垂直对齐参数
typedef
enum
{
kCCVerticalTextAlignmentTop,
kCCVerticalTextAlignmentCenter,
kCCVerticalTextAlignmentBottom
}CCVerticalTextAlignment
|
CCTextAlignment文本水平对齐参数
typedef
enum
{
kCCTextAlignmentLeft,
kCCTextAlignmentCenter,
kCCTextAlignmentRight,
}CCTextAlignment
|
CCLineBreakMode文本断行模式参数
typedef
enum
{
kCCLineBreakModeWordWrap,
kCCLineBreakModeCharacterWrap,
kCCLineBreakModeClip,
kCCLineBreakModeHeadTruncation,
kCCLineBreakModeTailTruncation,
kCCLineBreakModeMiddleTruncation
}CCLineBreakMode
|
ccTime浮点数 间隔时间类型 如果需要更高的精度可以改成double
ccMat4[16]
typedef
float
ccMat4[16];
|
尊重原创,源地址:http://group.cnblogs.com/topic/61274.html
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|