nel

Can't draw triangles in OpenGL but other primitives render fine...

Good afternoon, I'm trying to learn to use a graphics library that uses OpenGL. I can draw 2D primitives (text and lines) but 3D triangles don't render. I've tried everything I can think of but as an OpenGL newcomer I've probably missed something obvious. This code is not intended to be efficient. I'm trying to get it to work first. ...