Is opengl c or c++? Is it portable?
Printable View
Is opengl c or c++? Is it portable?
OpenGL is a cross-platform graphics system, yes, because essentially all it is is a specification for drivers that graphics chips manufacturers create to work with the system.
It can be coded in C/++, and there are other languages that it can be accessed from too.
More info can be found on it here.
FlyingIsFun1217
Just to piggy-back on his explanation, OpenGL is just a bunch of functions that can be used from basically any programming language, including C/C++.
To answer your question, OpenGL is actually written by the company that makes the video card (whichever video card you have). This means that there's a different implementation of OpenGL for every video card that supports it.
Also check out NeHe.gamedev.net
Most of the tutorials on NeHe have been ported to various other languages.