/**
* 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);
Ogrekit-Android的常用native方法
原创
©著作权归作者所有:来自51CTO博客作者ShaderJoy的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:看Ogrekit源码的小结
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
android native方法调用
手机上找到系统版本,触摸5下打开开发者选项,打开usb调试,手机上确认连接fingerprint。ad
android CMake ide