Uhmm.. The OpenSceneGraph\examples\osgviewerMFC example shows you how to use OSG with MFC Use the example as you base
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ümit Uzun Sent: Wednesday, July 30, 2008 11:27 AM To: OpenSceneGraph Users Subject: [osg-users] osgViewer on MFC Hi all, Sorry for simple question, but I am new on MFC windowing toolkit. I have looked at the mail-archive and web-site but there was no more sample except osgviewerMFC. I want to open my project on MFC window. At normal, I am using code as below. osgViewer::Viewer viewer; viewer.setSceneData( root.get() ); viewer.realize(); while( !viewer.done() ) { viewer.frame(); } But for using MFC, how can I create my window. Am I using osg::GraphicsContext ? And how can I use osg::GraphicsContext for opening MFC mod? I mean, How can a manage open my project in mfc? Thanks so much. Best regards. Umit UZUN
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

