A copy of the sample code from http://opengles-book.com/, with a port added for the Raspberry Pi specific changes ("Raspi")