개발환경 : 이클립스(인디고) / 자바 1.6 / sdk 최신버전 / cocos2d-2.0-rc2-x-2.0.1
-------------------------------------------------------------------------------------------------------------------
- 안드로이드(java)에서 ccRenderTexture 적용하는 방법에 대해서 조언 좀 부탁드립니다.
아이폰용 cocos2d 에서 ccRenderTexture 적용하는 방법은 구글링해보면 많이 나오는데.. 안드로이드용cocos2d에서 ccRenderTexture 적용하는
방법에 대한 예시나 글은 없더라고요.. 나름 아이폰용cocos2d 에 적용된 사례를 보면서 따라해보았으나 답이 나오지 않기에 염치 불구하고
질문 드립니다.
-------------------------------------------------------------------------------------
인터넷에서 찾은 예제(cocos2d-android CCRenderTexture 예제::실행이 되지 않고 어플 강제종료됨..)
- onEnter() 안에 코드를 넣었습니다.
CCSprite testure1 = CCSprite.sprite("menu_background.png");
CCRenderTexture layerRenderTexture = (CCRenderTexture)CCRenderTexture.renderTexture(width, height); << 여기에서 width와 height 는 무엇인가요?
layerRenderTexture.begin();
texture1.visit(CCDirector.gl);
layerRenderTexture.end();
this.addChild(layerRenderTexture);
로그캣 에러내역입니다.
===========================================================================================
08-20 13:26:04.621: W/SharedBufferStack(1422): waitForCondition(LockCondition) timed out (identity=27, status=0). CPU may be pegged. trying again.
08-20 13:26:04.668: W/SharedBufferStack(219): waitForCondition(LockCondition) timed out (identity=4, status=0). CPU may be pegged. trying again.
08-20 13:26:05.621: W/SharedBufferStack(1422): waitForCondition(LockCondition) timed out (identity=27, status=0). CPU may be pegged. trying again.
08-20 13:26:05.672: W/SharedBufferStack(219): waitForCondition(LockCondition) timed out (identity=4, status=0). CPU may be pegged. trying again.
08-20 13:26:06.625: W/SharedBufferStack(1422): waitForCondition(LockCondition) timed out (identity=27, status=0). CPU may be pegged. trying again.
08-20 13:26:06.672: W/SharedBufferStack(219): waitForCondition(LockCondition) timed out (identity=4, status=0). CPU may be pegged. trying again.
08-20 13:26:07.625: W/SharedBufferStack(1422): waitForCondition(LockCondition) timed out (identity=27, status=0). CPU may be pegged. trying again.
08-20 13:26:07.668: W/SharedBufferStack(219): waitForCondition(LockCondition) timed out (identity=4, status=0). CPU may be pegged. trying again.
이런식이 계속 나오다가 단말기가 재부팅 되어버립니다.
===========================================================================================
감사합니다.
공지사항 다 읽었습니다.




android 에서 ccRenderTexture 기능은 사용하지 못하는가보네요..