draw a triangle using opengl.