Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <jni.h>
  2. #include "CSeries.hpp"
  3. #include "world.hpp"
  4.  
  5. class World
  6. {
  7. public:
  8.  
  9. boolean initWorld(JNIEnv* restrict env) FORCEINLINE
  10. {
  11. this->WorldClass = env->FindClass("World");
  12. return True;
  13. }
  14.  
  15. private:
  16. jclass WorldClass;
  17. };
  18.  
  19. static World world;
  20.  
  21. JNIEXPORT void JNICALL Java_libGameWorld_World_Update(JNIEnv* env, jobject thiz)
  22. {
  23.  
  24. }
  25.  
  26. JNIEXPORT jboolean JNICALL Java_libGameWorld_World_initNative(JNIEnv* env, jobject thiz)
  27. {
  28. if( not world.initWorld(env) )
  29. return false;
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement