Android Cocos2dx Jni Bridge
I am new to using Cocos2d-X and am just experimenting using JNI in my application. So here is my java code public class JNITest { public static native void printSomething();
Solution 1:
callfuncO_selector
takes function pointer of method which accept CCObject*
as argument.
Your method MyScene::printSomethingInCpp()
should be like this:
MyScene::printSomethingInCpp(CCObject* pSender)
{
// your code
}
Post a Comment for "Android Cocos2dx Jni Bridge"