cocos2dx jni交互问题

来源:互联网 发布:线切割编程入门图 编辑:程序博客网 时间:2024/05/01 03:50

cocos2dx- call to OpenGL ES API with no current context(logged once per thread)   


cocos2dx- call to OpenGL ES API with no current context(logged once per thread)
交互要在opengl 线程里面处理就不会了
cocos2dx提供的
active.runOnGLThread(new Runnable() {

@Override
public void run() {
// TODO Auto-generated method stub
//这里写要处理的jni
}
} );
       


0 0