0

我使用 SurfaceView 编写了一个应用程序。似乎降低应用程序帧速率的一件事是绘制一些位图需要一些时间,并且使用画布绘制一些线条和圆圈也需要一些时间。我想尝试通过使用 GLSurfaceView 来改进这一点。与其说是因为较慢的帧速率是个问题,倒不如说是因为我只是想在 OpenGL ES 中涉猎一点。无论如何,对于 2D 绘图,我应该使用 OpenGL 1.0 还是 OpenGL 2.0?我还希望这个应用程序可以在尽可能多的设备上运行。

4

1 回答 1

1

GLES 2 works on Android 2.2 and higher. If that supports all the devices you want I would go with GL2 as GL1 is simply going out the window more and more as time goes on. Fixed pipelines are NOT the way to go if your interested in graphics for the future. If you learn GLES2 you can carry your knowledge to more advanced things later.

于 2012-05-18T10:04:31.883 回答