O'Reilly logo

OpenGL ES 3.0 Cookbook by Parminder Singh

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

Drawing APIs in OpenGL ES 3.0

OpenGL ES 3.0 provides two types of rendering APIs: glDrawArrays and glDrawElements. These APIs allows us to render the geometric data on the screen in the form of primitives. In this recipe, you will learn how these APIs are used in programming and understand the difference between them.

This recipe will render a cube by using the two different rendering APIs mentioned earlier. The datasets used by these APIs are entirely different. Tap on the screen to see the difference between the two APIs.

Getting ready

The glDrawArray API reads the vertex information in the form of an array in sequential order, starting from the first index to total number of indexes specified by the count. The glDrawArray API renders primitives ...

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