If your application uses texture compression, you must also declare which compression formats you support so that devices that do not support theses formats do not try to run your application:įor more information about texture compression formats, see the OpenGL developer guide. In order for your application to use the OpenGL ES 2.0 API, you must add the following declaration to your manifest: This lesson explains how to complete a minimal implementation of GLSurfaceView and GLSurfaceView.Renderer in a simple application activity. For real, do-it-yourself developers, it is also possible to build up an OpenGL ES view using SurfaceView, but this requires writing quite a bit of additional code. Developers who want to incorporate OpenGL ES graphics in a small portion of their layouts should take a look at TextureView. ![]() For a full-screen or near-full screen graphics view, it is a reasonable choice. ![]() GLSurfaceView is just one way to incorporate OpenGL ES graphics into your application. For more information about these classes, see the OpenGL ES developer guide. A GLSurfaceView is a view container for graphics drawn with OpenGL and GLSurfaceView.Renderer controls what is drawn within that view. ![]() ![]() One of the more straight-forward ways to do this is to implement both a GLSurfaceView and a GLSurfaceView.Renderer. In order to draw graphics with OpenGL ES in your Android application, you must create a view container for them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |