March 2013
Intermediate to advanced
346 pages
8h 4m
English
This recipe covers 2D drawing in OpenGL ES 1.x by example.
In order to draw 2D objects, we'll also describe the OpenGL rendering display through GLSurfaceView, adding colors to them, and transformation.
Readers are recommended to read the introduction of this chapter, which is essential to understand some of the content in this recipe.
The following steps create our sample Android NDK project:
TwoDG1. Set the package name as cookbook.chapter4.gl1x. Please refer to the Loading native libraries and registering native methods recipe in Chapter 2, Java Native Interface, if you want more detailed instructions.