Exercises

See if you can add some color interpolation to the line cutting across the middle of the screen. For a more challenging exercise, how would you change the triangles that make up the air hockey table so that the edges are less visible? Hint: You can try adding more triangles to the fan.

Once you’ve completed these exercises, we’ll start to learn about vectors and matrices and learn how we can fix a pesky problem that appears when we rotate from portrait to landscape.

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.