Chapter 3Compiling Shaders and Drawing to the Screen

This chapter will continue the work that we started in the last chapter. As our game plan for this chapter, we’ll first load and compile the shaders that we’ve defined, and then we’ll link them together into an OpenGL program. We’ll then be able to use this shader program to draw our air hockey table to the screen.

Let’s open AirHockey1, the project we started in the previous chapter, and pick up from where we left off.

Get OpenGL ES 2 for Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.