您的位置:首页 > 移动开发 > Android开发

Ogrekit-Android的常用native方法

2012-12-05 19:21 176 查看
/** 
* 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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: