Delivered-To: lablgtk at yquem.inria.fr From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: lablgtk at yquem.inria.fr Subject: Re: [Lablgtk] OpenGL support Date: Thu, 21 Jun 2007 05:36:38 +0100 References: <200706200549.51387.jon at ffconsultancy.com> <200706210251.26856.jon@ffconsultancy.com> <20070621.121301.125900327.garrigue@math.nagoya-u.ac.jp> In-Reply-To: <20070621.121301.125900327.garrigue at math.nagoya-u.ac.jp> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200706210536.39064.jon at ffconsultancy.com> Cc: Jacques Garrigue Content-Type: text/plain; charset="iso-8859-1" Content-Length: 2946 On Thursday 21 June 2007 04:13:01 Jacques Garrigue wrote: > From: Jon Harrop > > I just discovered that freeglut itself (the glut implementation that I'm > > using) ignores the value of "multisamples" that it is given. So this was > > not LablGlut's fault! I've implemented this in freeglut and multisampli= ng > > now works fine under LablGLUT. > > Nice... but one needs to patch freeglut. Done. > > That leaves CamlSDL and LablGTK. I'll look into these... > > As far as I can see, neither gtkglarea nor togl have support for FSAA. > gtkglext has a flag, but it specifically marked has not implemented > yet. (For all these I looked at the currect CVS version) Ok. I'd like to push some updates through and bring OCaml's OpenGL stuff up= to=20 date now that I've got OpenGL 2.1 drivers on my machine! Wow, this is confusing. Turns out Debian has a gtkglarea5-dev package but I= 'm=20 not using it (although I have GLArea working!) and libgtkgl2.0 provides bot= h=20 gdkgl and gtkglarea. Weird. =46rom the Debian popularity context: libgtkglext: 3734 libgtkgl2.0-1: 545 libgtkglext1-dev: 431 libgtkgl2.0-dev: 303 So Perl programmers use GLArea and Ruby programmers use GLExt but there isn= 't=20 much in it for developers. I'd say GLArea is alive and kicking. > On the other hand, SDL seems to have support (they even provide an > example to do that)... but ocamlsdl ommits the flag (the file is 4 > years old). So this should be easy enough to add support to ocamlsdl, > but harder for other toolkits. So Glut is done. I vote we attack LablGTK and GTKGLArea next. > > Incidentally, is the gtkglarea vs gtkglext controversy still in the > > same state that it was 2 years ago? > > It is. This discussion might have changed the situation... but since > it is not yet implemented in gtkglext either, I don't see the point of > switching. Agreed. > GtkGLarea is itself a widget. What it says is that GtkGLExt is > actually lower level, and allows you use openGL to create new widgets > (or to write into existing, non-openGL-aware widgets). > Honestly, I don't see the point from a lablgtk point of view, as you > cannot (easily) create new widgets anyway. This may make more sense > from C, if you want to extend an existing widget to display some openGL. > And from a practical point of view, being lower level is actually > confusing, since most applications just want to display some openGL in > a window, while using gtk for the rest of the interface. Yes. GLArea might not be actively maintained but it is widely installed and= =20 used. So we might as well just tweak it to bring it up to date and carry on= =20 using it, IMHO. =2D-=20 Dr Jon D Harrop, Flying Frog Consultancy Ltd. The OCaml Journal http://www.ffconsultancy.com/products/ocaml_journal/?e _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk