Thanx for the GTK code. If I get some time soon, I look at converting
your example for gtkmm (C++). I had problems with the older OSG GA
classes. Think the newer OSG Viewer classes does make it easier for
integration.

Rizzen

Jeremy L. Moles wrote:
> On Tue, 2007-01-02 at 17:31 -0500, Jeremy L. Moles wrote:
>   
>> I noticed there wasn't a GTK version of the SimpleViewer and wanted to
>> submit one. It uses gtkglext, which is available in all of the recent
>> Ubuntu, Fedora, and SuSE releases. (Seeing as, er, part of my job is to
>> know that kind of stuff. :))
>>
>> Anyways, feel free to make it actually DO something OSG-wise, rather
>> than just print out "MENU: foo" or "BUTTON: bar". (For example, StateSet
>> LINE mode on the node...)
>>     
>
> Few things I didn't mention:
>
> - The code is setup so that the OSGGTKDrawingArea object is very
> reusable. It acts as both a GtkWidget AND an osgViewer::SimpleViewer.
>
> - Because of GTK's use of callbacks, it gets messy using class methods
> as functions for events. However, it can be done--and indeed, I use the
> only way I know how--so forgive the messy parts of that code.
>
> Also, osg-submissions bounced the first mail. Rightly so, I guess...
> teaches me to doublepost.
>
>   
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://openscenegraph.net/mailman/listinfo/osg-users
>> http://www.openscenegraph.org/
>>     
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
>
>   

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to