[osg-submissions] Updated osgviewerWX example

Paul Melis paul at science.uva.nl
Wed Mar 5 05:32:59 PST 2008


Hi Robert,

Here is an updated osgviewerWX example to bring it more in line with the 
other GUI toolkit examples. It now takes a model file as command-line 
argument (complaining if there isn't one), and its startup window size 
is now actually applied (it used to be too small). I tested this with a 
unicode-build of wxWidgets, as that is the recommended build type on 
Linux with GTK. I'm pretty sure this version of the example will work 
for the ANSI build as well, but I have no way of testing.

Paul

PS Is there any change that in the future you might start accepting 
patches instead of whole files? It's so much more convenient to simply 
do a "svn diff > file.patch" than having to find the relevant files 
changed and tar them up, plus it makes the it more explicit what has 
changed to anyone following the submissions list without having to do a 
diff. Subversion actually lists the base revision in its diff output 
(see below), which might help in applying renegade patches.

===================================================================
--- examples/osgviewerWX/osgviewerWX.cpp    (revision 7909)
+++ examples/osgviewerWX/osgviewerWX.cpp    (working copy)
@@ -21,17 +21,23 @@
 // `Main program' equivalent, creating windows and returning main app frame
...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgviewerWX.cpp
Type: text/x-c++src
Size: 6668 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080305/181c3ff6/attachment.cpp 


More information about the osg-submissions mailing list