void HelloWorld::ccTouchesEnded( CCSet * touches, CCEvent * event )
{
//멀티터치 처리
CCSetIterator it = touches->begin();
CCTouch* touch;
for( int iTouchCount = 0; iTouchCount < touches->count(); iTouchCount++ )
{
touch = (CCTouch*)(*it);
CCPoint location = touch->getLocationInView();
location = CCDirector::sharedDirector()->convertToGL(location);
it++;
}
}
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 공부하고 싶은 것들 정리.(구글킵) (0) | 2014.07.30 |
|---|---|
| [디버깅] Cocos2dx 이클립에서 안드로이드 네이티브 디버깅 (0) | 2014.01.16 |
| cocos2d-x 멀티 터치 처리하기 (0) | 2014.01.14 |
| autoRelease 및 retain() , release(), retainCount() (0) | 2014.01.13 |
| CCNode 및 CCArray 의 메모리 관리 (0) | 2014.01.13 |
| cocos2d-x multi-resolution (0) | 2014.01.13 |
Trackback 0 And
Comment 0
처음 프로젝트를 생성할때 Box2d 를 선택하지 않고 프로젝트를 만들면
각종 오류들이뜸
속성-링커-입력-추가종속성- libBox2d.lib추가
속성-c/c++-추가포함디렉터리 - $(SolutionDir)external 추가
하면 대강 오류는 없어짐
'잡다한것들전부 > cookbook관련' 카테고리의 다른 글
| [Box2D] Box2D 기본 예제 디버그 모드 및 스프라이트 생성 (0) | 2014.01.14 |
|---|---|
| Box2d 사용시(처음에 시작시 체크하지 않았을시) (0) | 2014.01.14 |
Trackback 0 And
Comment 0
“Game Programming Gems 1권 – 3.3 A* 길찾기 알고리즘의 기초”
'보고싶은책' 카테고리의 다른 글
| 열혈강의 cocos2d-x (0) | 2014.01.16 |
|---|---|
| 안드로이드 NDK 책 (0) | 2014.01.15 |
| “Game Programming Gems 1권 – 3.3 A* 길찾기 알고리즘의 기초” (0) | 2014.01.14 |
| 프로그래머를 위한 책 (0) | 2014.01.13 |
| Code Complete (0) | 2014.01.13 |
| 게임프로그래머를 위한 자료구조와 알고리즘 (0) | 2014.01.13 |
Trackback 0 And
Comment 0


