Results 1 to 10 of 10

Thread: OpenGL C++ API???

  1. #1

    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
    C++ is the language of gods - OpenGL is their mirror.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2001
    Location
    England
    Posts
    173

    Re: OpenGL C++ API???

    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).]

  3. #3
    Member Contributor
    Join Date
    Feb 2000
    Location
    Germany
    Posts
    87

    Re: OpenGL C++ API???

    Search the web for "Open Inventor". It's an object-oriented wrapper around OpenGL.

  4. #4

    Re: OpenGL C++ API???

    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=%22Op...tor%22+c%2B%2B returns only one match =(((

    [This message has been edited by RAYtracer__ DREAMWALKER (edited 08-26-2001).]
    C++ is the language of gods - OpenGL is their mirror.

  5. #5
    Senior Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    763

    Re: OpenGL C++ API???

    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

    Code :
    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

  6. #6
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: OpenGL C++ API???

    Hi !

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

    Mikael

  7. #7

    Re: OpenGL C++ API???

    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).]
    C++ is the language of gods - OpenGL is their mirror.

  8. #8
    Senior Member Regular Contributor
    Join Date
    Dec 1969
    Location
    Munich,Germany
    Posts
    227

    Re: OpenGL C++ API???

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

    Chris
    yes

  9. #9

    Re: OpenGL C++ API???

    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...
    C++ is the language of gods - OpenGL is their mirror.

  10. #10
    Member Contributor
    Join Date
    Aug 2001
    Location
    Berkeley, Ca., USA
    Posts
    52

    Re: OpenGL C++ API???

    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/...r=860-0108-001

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean