Hello World Triangle

Time for an example. The OpenGL equivalent of Hello World is to draw a triangle. "Hello Triangle?" OpenGL is a low level API for writing and running programs on graphics hardware. As a result, even this basic example requires almost 30 lines of code.

(0,1) (-1,-1) (1,-1)

Notes

I thought I was being clever with this title. I have since learned that almost everyone does this. :)