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

Linear Algebra 101

So much of OpenGL works with vectors and matrices, and one of the most important uses of a matrix is in setting up orthographic and perspective projections. One of the reasons for this is that at the heart of things, using a matrix to do a projection just involves a bunch of “adds” and “multiplies” over a set of data in sequence, and modern GPUs are very, very fast at that sort of thing.

Let’s go back in time to when you were in high school or college and review the basics of linear algebra. If you don’t remember, have bad memories, or never took the class, there’s no need to worry; we’ll walk through the basic math together. Once we understand the basic math, we’ll then learn how we can use a matrix to do an orthographic ...

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