Hi,

Ash Pat wrote:
Hi,

I'm new to the OSG and just starting out with some simple examples.
The osgViewer::Viewer by default displays in full screen mode. But in my 
application I want it to be a smaller window by default. How do I do that?

I found the event handler WindowSizeHandler which has the facility to toggle the full screen mode but couldn't quite figure out how to make it work.

You can use the same code as the WindowSizeHandler uses internally. Search the osg examples for "traits" and you'll get many examples of creating windows. See e.g. osgwindows.

jp


Thanks in advance!

Regards,
Ash.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17930#17930





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


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

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

Reply via email to