eglPresentationTimeANDROID():我可以使用microedition.khronos而不是android.opengl吗?

eglPresentationTimeANDROID():我可以使用microedition.khronos而不是android.opengl吗?,第1张

概述我想在我的ExtendedGLSurfaceView(从GLSurfaceView扩展)中使用eglPresentationTimeANDROID. 该方法出现在: EGLExt.eglPresentationTimeANDROID(android.opengl.EGLDisplay display, android.opengl.EGLSurface surface, long time); 我 我想在我的ExtendedGLSurfaceVIEw(从GLSurfaceVIEw扩展)中使用eglPresentationTimeANDROID.

该方法出现在:

EGLExt.eglPresentationTimeANDROID(androID.opengl.EGLdisplay display,androID.opengl.EGLSurface surface,long time);

我的主要问题是GLSurfaceVIEw使用来自javax.microedition.khronos.egl的EGLdisplay,EGLContext和EGLSurface.但是,eglPresentationTimeANDROID从androID.opengl.EGLdisplay获取EGLdisplay和EGLSurface

有没有快速解决方案?或者我是否需要重做所有的ExtendedGLSurfaceVIEw才能使用androID.opengl类?

解决方法 我认为这不重要. IIRC,它在引擎盖下变成了同样的东西. EGL10和EGL14类只是底层本机代码的不同接口.

但是,我无法保证始终如此,因此将代码更新到更新版本会更安全.自API 17(AndroID 4.2)以来,EGL14已经存在,我认为最近的AndroID正在使用EGL 1.5. This code实现了两次,使用EGL 1.0和1.4,因此它可以作为移植示例.

FWIW,您可能会发现有兴趣的this answer.

总结

以上是内存溢出为你收集整理的eglPresentationTimeANDROID():我可以使用microedition.khronos而不是android.opengl吗?全部内容,希望文章能够帮你解决eglPresentationTimeANDROID():我可以使用microedition.khronos而不是android.opengl吗?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1125902.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存