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);
相关文章推荐
- 【Android学习日记】(三) 常用方法
- [Android L]SEAndroid开放设备文件结点权限(读或写)方法(涵盖常用操作:sys/xxx、proc/xxx、SystemProperties)热门干货
- React-Native Android 与 IOS App使用一份代码实现方法
- Android 启动Service服务和发送Broadcast广播的常用方法
- Android Native 绘图方法
- Android开发中adb命令的常用方法
- Android MediaPlayer 常用方法介绍
- Android网络编程常用的三种方法
- Android中保存数据常用的方法
- android开发常用工具方法
- Android ContentProvider的常用的增、删、改、查使用方法
- Android native c code log. c代码增加日志方法实例--Android4.0
- android 判断是否有网络 方法 工具类里的几个常用方法
- android应用的适配常用方法
- Android常用方法
- Android常用工具方法(关闭软键盘,安装apk,检测程序是否安装...)
- [Android开发工具类]对控件的一些常用方法
- android中图片操作的常用方法
- Android系统adb调试命令及常用抓log方法
- android开发常用组件及其使用方法链接