Hi Chris,
On 7/25/06, c sklu <[EMAIL PROTECTED]> wrote:
Hi,
I posted a message to osg-users a few days ago almost exactly about this
(but I never saw the post so I'm not sure if it was sent). Basically it was
just abstracting out Producer::RenderSurface from Producer::Camera into a
base RenderSurfaceBase class which then new RenderSurfaces could easily be
derived Since Producer::Camera actually uses only a small portion of the
RenderSurface interface, it was almost trivial to make a QRenderSurface and
I imagine also a wxRenderSurface. Nothing else has to change except that
Producer::Camera holds a pointer to RenderSurfaceBase instead and
Producer::RenderSurface derive from the new RenderSurfaceBase class. This
was a very straight-forward and naive but functional implementation so maybe
someone else has ideas on making it more robust?
This capability is very important for me since I am maintaining both Qt and
Wx code bases...
This isn't the approach I would take. If Don want goes down the above
route for Producer then fine, but longer term I think the
OpenSceneGraph itself needs to better viewer abstraction, which is why
I'm thinking about osgViewer.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/