O'Reilly logo

Android NDK Game Development Cookbook by Viktor Latypov, Sergey Kosarevsky

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

Unifying vertex arrays

Geometry data is submitted into OpenGL using Vertex Buffer Objects (VBO) and Vertex Array Objects (VAO). VBOs are part of both OpenGL versions; however, VAOs are not part of OpenGL ES 2 but are mandatory in the OpenGL 3.2 Core Profile. This means we have to make yet another abstraction to hide the difference between the two APIs behind it.

A Vertex Buffer Object (VBO) is an OpenGL feature that provides methods for uploading vertex data (position, normal vector, color, and so on) to the video device for non-immediate-mode rendering. VBOs offer substantial performance gains over immediate mode rendering, primarily because the data resides in the video device memory rather than the system memory and so it can be rendered directly ...

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