You can have a look at the MFC example included in OSG for using a win32
context.

 

Attached is a screen saver for windows that uses OSG and does what you need
I believe, ok not very power friendly  and the code needs tidying J, I have
commented out the section for keyboard input as I did not want to close with
the keyboard during testing, its only small so I thought I would post as its
been kicking around for a while.

Will compile against the latest CVS, not sure about going back to 2.2.0
though.

Sorry about any hard coded paths in the project solution if you use it.

Let us know how it goes, its needs cow.osg or will probably crash!

 

Regards

 

Martin.

 

 

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: 09 April 2010 13:39
To: [email protected]
Subject: [osg-users] GraphicsWindowWin32 instead of Producer

 


    Is it possible to use osgViewer::GraphicsWindowWin32 (like producer)
with osgUtil::SceneView in order to to makeCurrent or releaseCurrent context
and do the update, cull, draw etc in it?? I've develop something like that
but considering your high recommendation on using osgViewer instead of
osgUtil::SceneView i have some second thoughts. Al thought it seems to work
fine in my current release 2.2.0 but I have just some problems with
texturing. Textures are disappearing on sceneView recreation. I searched the
forum about a solution and your advise was to update on latest version. The
problem is that updating on  final osg release 2.9.8 there appears a lot of
memory leaks.


__________________________________________________
Χρησιμοποιείτε Yahoo!;
Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail διαθέτει την
καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων 
http://mail.yahoo.gr 

Attachment: OSG-Screensaver.7z
Description: Binary data

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to