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

Combining Triangle Strips and Triangle Fans

To build a mallet, or a puck for that matter, let’s first try to imagine the shape at a higher level. A puck can be represented as a flat cylinder, as follows:

images/Objects/Puck.png

A mallet is just a bit more complex and can be represented as two cylinders, one on top of the other:

images/Objects/Mallet.png

I know what you’re thinking: a real air hockey mallet is more than just two cylinders stuck together. Bear with me; once we learn the basics, you may feel just confident enough to build up a more detailed mallet.

To figure out how to build these ...

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