hi all,
I have to do some simulations in c++, and for the first time, I have
to use the gtk and osg.
I have to use osg in a gtk window(drawingarea I suppose) and the
inteface is creating with libglade.
but I have lots of difficult.
is there any tutorial example or anything other stuff who can help
me to connect this three library ..???
for example. there is my glade file.
--------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.0.2 on Thu Dec 21 18:41:06 2006 by [EMAIL
PROTECTED]>
<glade-interface>
<widget class="GtkWindow" id="window1">
<child>
<widget class="GtkDrawingArea" id="drawingarea1">
<property name="visible">True</property>
</widget>
</child>
</widget>
</glade-interface>
----------------------------------------------------------------------------------------------------------------
like you see it's just a simple window with a drawingarea.
and there is my c++ file.
--------------------------------------------------------------------------------------------------------------
#include <gtk/gtk.h>
#include <glade/glade.h>
int main (int argc, char **argv)
{
GladeXML *xml;
gtk_init(&argc, &argv);
glade_init();
xml = glade_xml_new("../ConfigFile/WindowsView.glade", "window1", NULL);
if (!xml) {
g_warning("problem while loading the .glade file");
return 1;
}
GtkWidget *window1 = glade_xml_get_widget (xml, "window1");
gtk_widget_show (window1);
gtk_main();
return 0;
}
------------------------------------------------------------------------------------------------------------------------
like you see too, it's not so complicate but How to connect the osg
with the drawing area.
is a drawing area I have to use (that's what I read, but how to use
gtkmm with it??)
thanks a lot.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/