[osg-users] osgViewer on MFC

Gordon Tomlinson gordon.tomlinson at sensor.com
Thu Jul 31 04:30:01 PDT 2008

Uhmm.. The OpenSceneGraph\examples\osgviewerMFC example shows you how to use
OSG with MFC 
Use the example as you base 


From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] 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() );

while( !viewer.done() )

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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080731/d040f3c9/attachment-0003.htm>

More information about the osg-users mailing list