ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • cocos2dx 에서 스텐실(ClippingNode) 사용하려면
    개발/Android 2016. 1. 29. 17:13
    728x90

    libcocos2dx

    org.cocos2dx.libCocos2dxActivity.java 에서 아래 부분을

    if (isAndroidEmulator())
       this.mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 0, 0, 0);

    다음과 같이 고쳐준다

    //if (isAndroidEmulator())
       this.mGLSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 0, 8);

    그러고나서 ClippingNode 를 사용해야 android 에서 잘 돌아감

     

     

    728x90

    댓글

Designed by Tistory.