[gtkmm] What Open-GL widget to use with gtkmm-2 ?



Hello. I need some advice on what widget to use for Open-GL graphics with gtkmm-2.

As I understand it, gtkglareamm and gtkglarea is only for gtk--1 ... at least that is what the gtkglarea homepage says, but there seems to be a package named libgtkglarea2.0-1.99.0-5mdk for Mandrake Linux. Is that gtkglarea for gtk-2 ? And if so, is there a gtkglareamm-2 also?

I have also looked at gtkglext and gtkglextmm.

Gtkglext seems to work fine on my platform, but gtkglextmm crashes. Is this widget not stable? My Linux Mandrake-92 hangs when running the gtkglextmm examples (everything freezes and nothing but a hard reset helps). My own test application with gtkglextmm got segmentation error somewhere in a Mesa call.

So, if gtkglareamm-2 doesn't exist and gtkglextmm is unstable, what options is there for having OpenGL in a gtkmm application? Or must I use Qt?

My platform:
Mandrake-92
gtkmm-2.2.8 (libgtkmm2.0_1-2.2.8-1mdk.i386.rpm)
gtk+-2.2.4 (libgtk+2.0_0-2.2.4-2mdk.i386.rpm)
Mesa 5.0.1 (libMesaGLU1-5.0.1-5mdk.i386.rpm)
GtkGLext 1.0.3 (libgtkglext0-1.0.3-1mdk.i386.rpm)
GtkGLarea 1.99 (libgtkglarea2.0-1.99.0-5mdk.i386.rpm)

Thank you for any advice!

/Oskar




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]