开发者

How can I call eglSwaptInterval using AndroidNDK?

开发者 https://www.devze.com 2023-03-20 09:12 出处:网络
I need to set the interval in eglSwapInterval to 0 for my application, however I need to k开发者_StackOverflow中文版now the EGLDisplay for this. Is this call supported in Android, and if so how can I

I need to set the interval in eglSwapInterval to 0 for my application, however I need to k开发者_StackOverflow中文版now the EGLDisplay for this. Is this call supported in Android, and if so how can I call this using GLSurfaceView (or do I need to call this from the native code?)


Okay, I have managed to call it from the native side, (I cannot find a way to call it from Java):

 eglSwapInterval(eglGetCurrentDisplay(), 0);

I am assuming that I don't need to call eglSwapBuffers myself, as this seems to be happening already somewhere by the Android system.

0

精彩评论

暂无评论...
验证码 换一张
取 消