Chapter 10. A First Look at OpenGL ES

In this chapter, we will cover the following topics:

  • Setting up the OpenGL ES environment
  • Drawing shapes on GLSurfaceView
  • Applying projection and camera view while drawing
  • Moving the triangle with rotation
  • Rotating the triangle with user input

Introduction

As we saw in the previous chapter, Android offers many tools for handling graphics and animations. Though the canvas and drawable objects are designed for custom drawing, when you need high performance graphics, especially 3D gaming graphics, Android also supports OpenGL ES. Open Graphics Library for Embedded Systems (OpenGL ES), is targeted for embedded system. (Embedded systems include consoles and phones.)

This chapter is meant to serve as an introduction to ...

Get Android Application Development Cookbook - Second Edition 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.