Render a triangle using tutorial code from open.gl