How difficult is it to integrate OSG code into an existing OpenGL application?

Let's say I have an application which renders 2 different types of scene. The app reads in object data, material information etc. etc. then enters a framing loop and calls the main Render function. Something like this:

InitializeXWindowGLContextEtc()
InitializeObjects()
InitializeRest()
while (still need to render)
   RenderSceneA()

Or  maybe the app calls RenderSceneB()

while (still need to render)
   RenderSceneB()

I want to add my own Render function which uses OSG

while (still need to render)
   RenderSceneC_OSG()

Is this possible?  Difficult?  Are there examples?

Ed


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to