OpenGL C++ API???

hi!
i like c++ very much and i like OpenGL but i hate it to convert void pointers and 0-terminated strings to STL compatible stuff(like vectors and so …)

my question is:
is there somewhere an C++ compatible OpenGL API?

thanx

OpenGL is compatible with C++.

It’s just not defined to specifically use C++ language features (like strings, vectors etc.)

-Mezz

[This message has been edited by Mezz (edited 08-26-2001).]

Search the web for “Open Inventor”. It’s an object-oriented wrapper around OpenGL.

i have found sample code in http://www.sgi.com/software/inventor/vrml/chap1.html
it looks object orientated but is VRML not C++ =(
the google search “open inverstor” c++ http://www.google.com/search?q=%22Open+Investor%22+c%2B%2B returns only one match =(((

[This message has been edited by RAYtracer__ DREAMWALKER (edited 08-26-2001).]

Hello,

what is it, exactly, that you want? An object oriented version of OpenGL? Strictly speaking, opengl already IS object oriented, in some sense. (The frame buffer is an object that you access through member functions like glVertex3f.) If you want to use OpenGL with an object oriented flavour, then you can try using Java. Thats oriented by objects, and you have to instantiate a gl context and then do

myOpenGlContext.vertex2f();
               ^
        object referece!

is that what you want? Or… are you after a scene graph wrapper, 'cause that’s what open inventor is all about (for a start).

do a search for scene engines. a list has been given in these forums, somewhere.

cheers,
John

Hi !

It’s not “open investor”, it’s “open inventor” try that and you will get many more hits ;o)

Mikael

sorry, i mean open inventor of course =)

what i want is a API/wrapper of OpenGL in STL or SigC++ style (OBJECT ORIENTATED), an C++ based library. (coded FOR and WITH C++)

[This message has been edited by RAYtracer__ DREAMWALKER (edited 08-27-2001).]

geee can’t you use google
took me 2 seconds to get this http://oss.sgi.com/projects/inventor/

Chris

i have searched for “open inverstor” c++ =(
but as i’ve allthough searched for open inventor before and found the same link, but i can’t understand how this VRML thing wants convert opengl to an object orientated language…

Originally posted by RAYtracer__ DREAMWALKER:
i have searched for “open inverstor” c++ =(
but as i’ve allthough searched for open inventor before and found the same link, but i can’t understand how this VRML thing wants convert opengl to an object orientated language…

Open Inventor C++ Reference Pages:
http://techpubs.sgi.com/library/tpl/cgi-bin/download.cgi?coll=0650&db=bks&docnumber=860-0108-001

Time it took me to find this, using information in this thread: 10 seconds.