OpenGL in C++ and not C ?

sAvAgE

New member
I there a way to do OpenGL in C++?

I have done the reading in Programming in OpenGL and that is all in C, does anyone know of a site that has a pdf on Programming OpenGL in C++?
and Not for Windows, but for X Windows for Linux.


Anyhelp would be apprieciated :)
 
Welllll.... what exactly do you mean by doing OpenGL in C++. Because anything you want to do in C you can do in C++. Do you want to make a class out of something, or what?

Anyway in response to the linux thing check out the open GL tutorials on NeHe's site.
http://nehe.gamedev.net
he has source code for almost every platform (some in .cpp files :) )
 
You may want to take a look at my framework, it supports Linux nowadays. :)
Link in sig.
 
Well, most of the stuff at Nehe is actually just C. Then again, Nehe's and other's tutorials are primarily meant for getting started in OpenGL -- not for building a full application. Application or game buiding is an entirely different matter. In such cases, C++ is used over C because the object-oriented approach can potentially lead to much better data abstraction and organisation of a program.
 
Back
Top