If you want to create more or less portable code, you might want to use GLUT. GLUT exists on most platforms today.
OpenGL is a very clean and easy API, so getting a triangle or two to show up is pretty easy. Have a look at NeHe’s OpenGL site for some excelent tutorials.