2009/5/28 Clay, Bruce <[email protected]>: > I have tried all of the ones except for osgWin32Demo (the link is > nonresponsive) in the windowing Toolkit section and can not get them to > compile with the current version of OSG for various reasons. One uses a > CameraManipulator which doe4s not seem to be in the current build. Another > is looking for getOrCreateDatabasePager in registry. > > > > > > Does anyone have basic viewer code that works with a MFC or Win32 framework? > > > > Bruce > > > > > > > > This message and any enclosures are intended only for the addressee. Please > notify the sender by email if you are not the intended recipient. If you > are > not the intended recipient, you may not use, copy, disclose, or distribute > this > message or its contents or enclosures to any other person and any such > actions > may be unlawful. Ball reserves the right to monitor and review all messages > and enclosures sent to or from this email address. > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
Hi Bruce, which version of OSG (2.8.1?) did you try? I am not sure about MFC (I've never used it since I have porting concerns), but it works for SDL. If you are not using SDL, you can skip the rest... I don't know your purpose, but once you get a window from SDL, you could obtain its window handle via GetActiveWindow() (as long as it's _the_ only top level window you've got). After obtaining HWND, you can call regular Win32 functions over it (or you may attach an existing windowing framework's class to that handle; e.g. CWindow of WTL). Ismail _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

