Paladin of the Pegasos
Posts: 1193 from 2003/2/24
From: Helsinki, Finland
As you specifically mentioned OpenGL, I would advice againist depending too much on
NeHe tutorials (which is the first hit you get when googling for "OpenGL tutorial" and is way too often the first page people wanting to learn OpenGL are directed at) - it concentrates WAY too much on immediate mode (glBegin()... glEnd() etc.) which is deprecated functionality (will be removed from future OpenGL version, but works just ok on tinygl anyway) and is the slowest and in most cases generally the worst way to draw.
Don't get me wrong, you CAN learn the basics there, but the concentration on immediate mode is "all wrong"
As an alternative to immediate mode, it's almost always better to use
vertex arrays, which are way more practical for most usecases, and faster too.
Of course VBO is the fastest way to draw, but tinygl doesn't currently support it. But luckily vertex arrays and vbo are really similar, so upgrading vertex array code to use VBO is usually not a big issue (while immediate mode approach is completely different from vertex arrays)