天天看點

Ogrekit-Android的常用native方法

/** 
* Declaration for function defined in nv_time/nv_time.cpp It initializes 
* and returns time through Nvidia's egl extension for time. It is useful 
* while debugging the demo using PerfHUD. 
* * @see: nv_time/nv_time.cpp for implementation details. 
*/
 
public native void nvAcquireTimeExtension();
 
public native long nvGetSystemTime();
 
public native boolean render(int drawWidth, int drawHeight,boolean forceRedraw); 
 
public native void cleanup();
 
public native boolean init(String initArg);
 
public native boolean inputEvent(int action, float x, float y, MotionEvent event);
 
public native boolean keyEvent(int action, int unicodeChar, int keyCode, KeyEvent event);
 
public native void setOffsets(int x, int y);
 
// needs to be implemented yet and called at onPause()-Event 
public native void pauseSound();
 
// needs to be implemented yet and called at onResume()-Event 
public native void restartSound();
 
public native void sendSensor(int sensorType, float x, float y, float z);
 
public native void sendMessage(String from, String to, String topic, String body);      

繼續閱讀