Ogrekit-Android的常用native方法

举报
ShaderJoy 发表于 2021/12/29 23:43:15 2021/12/29
【摘要】 /** * 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 t...

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

文章来源: panda1234lee.blog.csdn.net,作者:panda1234lee,版权归原作者所有,如需转载,请联系作者。

原文链接:panda1234lee.blog.csdn.net/article/details/8261937

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。