PDA

View Full Version : OpenGL C++



Eckos
05-15-2008, 10:43 PM
Is there a C++ wrapper thats very close to the normal C OpengL api? Ones I have found are really outdated. :(

Zengar
05-16-2008, 03:02 AM
Why would you need one?

Eckos
05-16-2008, 12:11 PM
Because I hate using C :P

MarcBejerano
05-16-2008, 02:14 PM
Are you looking for an object-oriented wrapper that encapsulates the functionality of OpenGL into classes or a simple wrapper around a drawable context that you can then use with standard OpenGL calls?

If you are seeking the latter then you may wish to consider gtkmm (http://www.gtkmm.org/) and gtkglextmm (http://www.k-3d.org/gtkglext/Main_Page) which provide a good solution for C++ and OpenGL as well as good integration with the underlying UI. I believe that Qt from Trolltech (http://trolltech.com/products/qt/) also provides similar functionality.

Zengar
05-16-2008, 06:09 PM
Because I hate using C :P

This is really strange, as they are both actually the same :)

Eckos
05-17-2008, 08:03 AM
not really perce. Since C doesn't have a stricter conformance. No class/struct objects. It does have struct but it's different from C++'s. etc

Zengar
05-17-2008, 09:05 AM
My point was that I don't imagine anything useful coming from creating a C++ wrapper for OpenGL calls (I am fully aware of differences between C++ and C); to be honest, such wrapper is really pointless in my eyes. Can you provide me with a link to that "outdated" ones, I would really love to have a look at this curiosity.

Eckos
05-22-2008, 11:43 AM
Yes I use OpenGL with Qt. And this one is.

http://www.nigels.com/glt/