Hi Robert, That totally makes sense, I can see the difference now between setCursor(NoCursor) and useCursor(false).
Thanks! Jason On Tue, Apr 15, 2008 at 3:23 PM, Robert Osfield <[EMAIL PROTECTED]> wrote: > Hi Jason, > > I've already merged your submission, so this rather belated reply (I'm > missed your message earlier): > > On Tue, Apr 15, 2008 at 4:16 PM, Jason Beverage <[EMAIL PROTECTED]> > wrote: > > > I've got a few questions before I get started though: > > 1) What is the difference, if any, between calling useCursor(false) and > > calling setCursor(GraphicsWindow::NoCursor). It seems like there isn't a > > need for useCursor. > > > useCursor(false) tells the GraphicsContext::realizeImplementation() > whether to create a cursor or not. > > The setCursor() could be called before or after realize() so has a bit of > different role. Perhaps if one pushed setCursor into osg::GraphicsContext > rather than the osgViewer::GraphicsWindow one could add the cursor enum to > Traits itself, and hence pull the two together. However, the cursor enum > API is something open to later revision anyway so probably best not to push > it to far down in the chain. > > > > 2) Would setting useCursor(true) and calling > > setMouseCursor(GraphicsWindow::InheritCursor) be an appropriate hint to OSG > > to leave the cursor management alone? It looks InheritCursor isn't > > currently isn't used anywhere > > > > useCursor true and inheritCursor would suggest not disabling the cursor, > rather just inheriting as you have implemented in your submission and now > checked into SVN. InheritCursor is used GraphicsWindowX11.cpp. > > Robert. > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

