Hi Geoff,

osgViewer::Viewer has a default constructor and will work just fine
without the command line arguments.  In fact most of the OSG examples
don't use ArgumentParser at all.  So just remove the ArgumentParser
bits and you'll get on just fine.

If all your need to do is geometry queries then you don't even need a
Viewer at all, you only use the Viewer if you actually need one.

Robert.

On Fri, Oct 10, 2008 at 1:43 PM, Geoff <[EMAIL PROTECTED]> wrote:
> Ok, forgive me if this is a basic question, as I am just starting out with 
> OSG.
>
> I have a project that I was given that runs via the commandline,
> creates a osgViewer::Viewer based on the arguments passed via the
> command line and then retrieves all Z values at a given x,y location.
> Right now I have an osg::ArgumentParser that handles the incoming
> arguments, but then that gets passed to the viewer.
>
> What I am looking to do is remove the commandline arguments as I am
> trying to make this project into a DLL library to use with another
> application. Is there a way to create the viewer without passing in
> the osg::ArgumentParser object, and if so, could someone point me to
> the documentation on it, or an example?
>
> Thanks again.
>
> Geoff
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to