GLPaint Demo from apple: https://developer.apple.com/library/ios/samplecode/GLPaint/Introduction/Intro.html