facebook twitter hatena line google mixi email

Cocos2dx/AndroidNative連携/jni型

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

typeリスト

JNI Types Java Type
void void
jboolean boolean
jbyte byte
jchar char
jshort short
jint int
jlong long
jfloat float
jdouble double
jobject All Java objects
jclass java.lang.Class objects
jstring java.lang.String objects
jobjectArray Array of objects
jbooleanArray Array of booleans
jbyteArray Array of bytes
jshortArray Array of shorts
jintArray Array of integers
jlongArray Array of longs
jfloatArray Array of floats
jdoubleArray Array of doubles

参考:http://stnguyen.com/cocos2d-x/call-cpp-functions-from-java.html