2014년 7월 15일 화요일

cocos2d-x 3.1 with cocostudio ISSUE


this is my Question

http://discuss.cocos2d-x.org/t/cocostudio-export-data-use-on-cocos2dx-3-1/15534


I received answer

http://discuss.cocos2d-x.org/t/android-stencil-buffer-not-enabled/11089

on page,

So you can refer to cocos2d-x/samples/Cpp/TestCpp/proj.android/src/org/cocos2dx/testcpp/TestCpp.java

and i go to

C:\Users\pineoc\Desktop\cocos2d-x-3.1.1\tests\cpp-tests\proj.android\src\org\cocos2dx\cpp_tests


on code(AppActivity.java),

ckage org.cocos2dx.cpp_tests;

import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;

public class AppActivity extends Cocos2dxActivity {
   
    public Cocos2dxGLSurfaceView onCreateView() {
        Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
        // TestCpp should create stencil buffer
        glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
       
        return glSurfaceView;
    }
}

this code copy to my project folder android
C:\Users\pineoc\cocos2d-x-3.1.1\\proj.android\src\org\cocos2dx\cpp\AppActivity.java

add code

import org.cocos2dx.lib.Cocos2dxGLSurfaceView;

public Cocos2dxGLSurfaceView onCreateView() {
        Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
        // TestCpp should create stencil buffer
        glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
       
        return glSurfaceView;
    }

and you will see that all okay
success!

good for coding!

댓글 없음:

댓글 쓰기

JIRA Plugin - ScriptRunner 소개 #2

관련 글 소개 #1:  https://pineoc.blogspot.com/2019/03/scriptrunner-1.html ScriptRunner 소개 #2 지난 글에서는 Behaviours를 보았고 다음 내용인 콘솔, 리스너 등을 ...