首页 > Windows开发 > 详细

看文档要看仔细,英语要加强啊... cocos2d-x 的 API 和 对应版本的 cocos2d-js 的 API 没有完全对应

时间:2015-04-09 21:39:28      阅读:200      评论:0      收藏:0      [点我收藏+]

/**
 
* Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew.
 
*
 
* The difference between `setRotationalSkew()` and `setSkew()` is that the first one simulate Flash‘s skew functionality,
 
* while the second one uses the real skew function.
 
*
 
* 0 is the default rotation angle.
 
* Positive values rotate node clockwise, and negative values for anti-clockwise.
 
*
 
* @param rotationX The X rotation in degrees which performs a horizontal rotational skew.
 
*
 
* @warning The physics body doesn‘t support this.
 
* @js setRotationX
 
*/
 
virtual void setRotationSkewX(float rotationX);
 
CC_DEPRECATED_ATTRIBUTE virtual void setRotationX(float rotationX) { return setRotationSkewX(rotationX); }
 
注释没有看仔细,浪费几天的时间.... @js setRotationX----- 这句话的意思是  JS对应的版本是setRotationX,函数?说明: CC_DEPRECATED_ATTRIBUTE 表示 setRotationX 函数 在cocos2d-x 当前版本已经废弃了。  看文档要看仔细了。

看文档要看仔细,英语要加强啊... cocos2d-x 的 API 和 对应版本的 cocos2d-js 的 API 没有完全对应

原文:http://www.cnblogs.com/porter/p/4411929.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!