Hi again Robert,

concerning the self registering of the X11WindowingSystemInterface: no, if I
remove the stuff I added it's not working anymore... And I don't see how it
could work ? we are just calling an empty function in this case...

how do you know the "X11WindowSystemInterface was registering itself anyway"
??... it seems quite impossible to me with the sources on the SVN... :-(

Manu.

2007/6/1, Robert Osfield <[EMAIL PROTECTED]>:

Hi Manu,

> - The compilation went fine, osgstaticviewer was created,
> - First I noticed the function graphicwindow_X11 was commented in
> osgstaticviewer.cpp,
> - This function also had an empty body in GraphicWindowX11.cpp, I simply
> added something like
> osg::GraphicsContext:setWindowingSystemInterface(new
> X11WindowingSystemInterface);

Did you need to do anything in this function body,  I didn't add
anything because the X11WindowSystemInterface was registering itself
anyway.

> And this worked for me... I tryed to start osgstaticviewer multiple
times
> with an .ive file and had no particular error...

Good to hear it worked.

> if i can make a small suggestion by the way: wouldn't it be more logical
to
> simply have a "graphicwindow()" function (and a more friendly function
name
> or a MACRO could be even better...) rather than "graphicwindow_X11()"
--> we
> could then define this same function in GraphicWindowX11.cpp,
> GraphicWindowWin32.cpp, etc... as only a single .o file is linked there
> should be no conflict no ? and we would hide implementation details for
this
> default windowing system to the users... (they would not have to change
the
> function they call depending on the platform used...).

Potentially we could have more than one GraphicsWindow* implementation
on a single platfom, this is currently supported, but its technically
possible and something I had in mind when I designed osgViewer.  In
this instance we need to be explict.

For the time being I guess we could just go for the one function entry
point.  A macro could hide this too.

> Any way, concerning your sudden pointer reset, I've trully never seen
this
> and have now clue either.... (try a linux reboot  maybe :-D )...

Reboot linux to try an fix a problem?  You've obviously been too near
a Windows machine recently.

My guess is that their is a double initialization of the static for some
reason.

Robert.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to