[osg-users] Using OpenGL code in OSG.

Robert Osfield robert.osfield at gmail.com
Wed Sep 26 01:00:42 PDT 2007

Hi Eric,

The osgteapot example provides an example of integrating OpenGL code
into the OSG.  You could also try using a camera post draw callback.

You'll need to insulate your own OpenGL state management from the OSG
and visa versa.  There has been lots talked about this topic over the
years so please browse the archives.


On 9/25/07, eheft at dnaco.net <eheft at dnaco.net> wrote:
> Hello,
> I have an application that was written for SGI Performer and
> has a fair amount of OpenGL code that I have no interest in
> recoding into the OSG node structure.
> My first thought is to use the example GLUT demo as a
> baseline since I can directly call the various legacy pieces
> and they seem to work.
> I was wondering if there was a better method for doing
> legacy OpenGL code?
> Thank you,
> Eric
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list