Thanks for the reply, Robert. What Sergey said was enough in my
situation. Thanks for this, Sergey.
I was simply quiet not to generate unnecessary thank you post :)
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.
Hi Michael,
One doesn't normally need to create a new context when resizing a
window. Why do you need to in your case?
If you do close a context and assign a new one then you'll need to
make sure that you clean up all the OpenGL object handles that the
scene graph maintains when disposing of the
update:
It works with new camera, you just need to reassign scene to viewer.
void setWindow(unsigned int width, unsigned int height, bool
fullScreen) {
osg::ref_ptr scene = mViewer->getSceneData();
if (fullScreen)
...
...
mViewer->setCamera(cam);
Hi
In your example:
change line 34
osg::ref_ptr cam = new osg::Camera;
to
osg::ref_ptr cam = mViewer->getCamera();
and it should work.
IDK why it doesn't work with new camera though...
Cheers,
Sergey.
02.08.2012, 14:58, "michael kapelko" :
> Hi.
> I want to have window
4 matches
Mail list logo