Function Documentation CC_DLL

void CC_DLL cocos2d::ccDrawInit()  

Initializes the drawing primitives. 初始化绘图原语。


void CC_DLL cocos2d::ccDrawPoint(const CCPoint & point)  

draws a point given x and y coordinate measured in points

画一个点的x和y坐标测量分


void CC_DLL cocos2d::ccDrawPoints(const CCPoint * points,
  unsigned int numberOfPoints 
 )  

draws an array of points.

绘制数组点


void CC_DLL cocos2d::ccDrawLine(const CCPoint & origin,
  const CCPoint & destination 
 )  

draws a line given the origin and destination point measured in points

画一条线(从出发地与目的地之间点以点)


CC_DLL void
cocos2d::CCProfilingBeginTimingBlock
(const char * timerName)  

void CC_DLL cocos2d::ccDrawRect(CCPoint origin,
  CCPoint destination 
 )  

draws a rectangle given the origin and destination point measured in points.

画一个长方形的起源和目的点以点。

void CC_DLL
cocos2d::ccDrawSolidRect
(CCPoint origin,
  CCPoint destination,
  ccColor4F color 
 )  

draws a solid rectangle given the origin and destination point measured in points.

画一个实心矩形出发地与目的地之间点以点。


详:

http://www.cocos2d-x.org/reference/native-cpp/V2.2.2/d6/da4/group__global.html#ga5071c6f1da8a7b78e668ef874a71c892


2014.2.24  学习记录

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值