[osg-users] osgswig: new context, traits?
Mathias Franzius
Mathias.Franzius at web.de
Wed Mar 11 08:34:36 PDT 2009
Dear ng,
when I want to open a new graphics context and attach it to a camera in c, this would look like:
osg::ref_ptr<osg::GraphicsContext::Traits> traits = new osg::GraphicsContext::Traits;
[...]
osg::ref_ptr<osg::GraphicsContext> gc = osg::GraphicsContext::createGraphicsContext(traits.get());
osg::ref_ptr<osg::Camera> camera = new osg::Camera;
camera->setGraphicsContext(gc.get());
camera->setViewport(new osg::Viewport(0,0, traits->width, traits->height));
(copied from osgwindow example).
Now in osgswig there is no osg.GraphicsContext.Traits !
How do I proceed to replicate the osgwindow example?
Thanks!
Mathias
______________________________________________________________________________
Nur bis 16.03.! DSL-Komplettanschluss inkl. WLAN-Modem für nur 17,95 EURO/mtl.
+ 1 Monat gratis!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a
More information about the osg-users
mailing list