O'Reilly logo

OpenGL ES 2 for Android by Kevin Brothaler

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

Introducing the OpenGL Pipeline

We’ve now defined the structure of our hockey table, and we’ve copied the data over to native memory, where OpenGL will be able to access it. Before we can draw our hockey table to the screen, we need to send it through the OpenGL pipeline, and to do this we need to use small subroutines known as shaders (see Figure 10, An overview of the OpenGL pipeline). These shaders tell the graphics processing unit (GPU) how to draw our data. There are two types of shaders, and we need to define both of them before we can draw anything to the screen.

images/StartingAirHockey/SimplePipeline.png
Figure 10. An overview of the OpenGL pipeline
  1. A vertex shader generates the ...

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