March 2016
Intermediate to advanced
428 pages
9h 2m
English
What we've demonstrated so far with OpenGL would probably be easier using the traditional canvas or drawable objects. This recipe will show a bit of the power of OpenGL by rotating the triangle. Not that we can't create movement with the other drawing methods, but how easily we can do this with OpenGL!
This recipe will demonstrate how to rotate the triangle, as this screenshot shows:

Create a new project in Android Studio and call it: CreatingMovement. Use the default Phone & Tablet options and select Empty Activity when prompted for Activity Type.
This recipe builds on the previous recipe Applying Projection ...
Read now
Unlock full access