Trying to dynamically create Triangles with OpenGL