简体   繁体   English

AndEngine GLES vs AndEngine GLES2

[英]AndEngine GLES vs AndEngine GLES2

I found this code on AndEngine GLES engineOptions.getTouchOptions().setRunOnUpdateThread(true); 我在AndEngine上发现了这个代码GLES engineOptions.getTouchOptions engineOptions.getTouchOptions().setRunOnUpdateThread(true);

the problem is how to make that code on AndEngine GLES2? 问题是如何在AndEngine GLES2上制作代码?

That line, in GLES1, tells to the engine that touch events will run on update thread instead of the main (UI) thread. 在GLES1中,该行告诉引擎触摸事件将在更新线程而不是主(UI)线程上运行。 It's like if all the code inside touch events were executed through "runOnUpdateThread" method. 就好像触摸事件中的所有代码都是通过“runOnUpdateThread”方法执行的。

In GLES2, touch events run on update thread by default. 在GLES2中,默认情况下触摸事件在更新线程上运行。 So you don't need that line of code. 所以你不需要那行代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM