摘要: 1、CCTouch* touch->getLocation() ---- 返回当前触摸点在openGL坐标系中的位置 openGL坐标系,原点在左下角,x向右为正,y向上为正。2、CCTouch* touch->getLocationInView() ---- 返回当前触摸点在屏幕坐标系中的位置 视图坐标系,原点在左上角,x向右为正,y向下为正。 经测试以上两个结果值,x一样,y值不一样。3、CCDirector->sharedDirector()->convertToGL(CCPoint* point)------把poit从一个UIKit 框架坐标系转换到OpenG 阅读全文
posted @ 2014-02-13 09:42 cainiaozhang 阅读(385) 评论(0) 推荐(0) 编辑