In this chapter you will be introduced to modeling 3D objects using the open-source software Blender. First, you will learn the basics of the Blender interface, and how to model the objects for our Tank Fence game. Finally, you will see how we include these objects inside ES 2.0 applications by using parsers to read and manipulate the mesh data.
Drawing Shapes Using glDrawElements
To specify the type of primitive(s) we intend to render on the OpenGL surface, we use ES 2.0 functions—glDrawArrays or glDrawElements.
In Chapter 3 you learned about the ES 2.0 function glDrawArrays. This function is generally not used for rendering primitives in ES 2.0 applications, such as games. This is because, when authoring game objects ...