Android using OpenGL ES for 2D development (introduction)
1.what is a OpenGL ES
OpenGL is (Open Graphics Library) abbreviation OpenGL ES target devices including mobile phones, home appliances, and vehicles. Because OpenGL ES must be smaller than OpenGL, so it deleted a lot of functions. For example, OpenGL ES can not be directly supported by drawing a rectangle, you must draw two triangles to form a rectangle. Both are from the Khronos Group maintains that the association by the ATI, NVIDIA, and Intel and other companies2.Programming model
From the above chart we can see that this general model has so four things: the object, light, camera, Viewport
Finally a ViewPort that we pay attention io the place, the entire virtual 3D is so big that we can not focus the whole, the general concern within one o'clock.
To note here is that OpenGL ES 3D graphics programming API. So we have done all the things which are in 3D, 2D development mentioned here, but we do make it look just two latitudes (dimension), the z-axis is set to 0.
3.Projections
Projection following two main points.
1 perspective projection (perspective projection), distant objects will be smaller, as we look reality in the eye we can see
2 parallel projection regardless of how far the object from the camera body, the object will be the same size, usually used in 2D programming
First mentioned here. Note that the article made reference to the "Beginning Android Game" and "proficient Android 2" two books