O'Reilly logo

Android NDK Beginner's Guide by Sylvain Ratabouil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

OpenGL and graphics, in general, is a really vast domain. One book is not enough to cover it entirely. But drawing 2D graphics with textures and buffer objects opens the door to much more advanced stuff! In more detail, we have learned how to initialize and bind OpenGL ES to the Android windows with EGL. We have also loaded a PNG texture packaged as assets with an external library. Then, we have drawn sprites efficiently with OpenGL ES extensions. This technique should not be overused as it can impact performance when many sprites are blitted. Finally, we have rendered a tile map efficiently by pre-computing rendered tiles in vertex and index buffers.

With the knowledge acquired here, the road to OpenGL ES 2 is at a perfectly walkable distance! ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required