iOS Dev(69)ワンポイントタッチするとCocoa Touch API座標がOpenGL座標に変換されます。

484 ワード

iOS Dev(69)ワンポイントタッチするとCocoa Touch API座標がOpenGL座標に変換されます。
ブログ:http://blog.csdn.net/prevention 作者:大锐哥摘出:Learn iPhone and iPad cocos2d Game Development を選択します。
-(CGPoint) locationFromTouches:(NSSet *)touches
{
    UITouch *touch = [touches anyObject];
    CGPoint touchLocation = [touch locationInView: [touch view]];
    return [[CCDirector sharedDirector] convertToGL:touchLocation];
}
を選択します。
転載は来たと明記してください。http://blog.csdn.net/prevention