To: luther at dpt-info.u-strasbg.fr Cc: lablgtk at kaba.or.jp Subject: Re: some lablgtk/lablGL questions ... In-Reply-To: <20001211163431.A15168 at lambda.u-strasbg.fr> References: <20001211163431.A15168 at lambda.u-strasbg.fr> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20001212104754R.garrigue at kurims.kyoto-u.ac.jp> Date: Tue, 12 Dec 2000 10:47:54 +0900 From: Jacques Garrigue Lines: 61 From: Sven LUTHER > I have been playing with lablgtk and lablgl this week end, and i have some > difficulties with it (apart that i miss the easy setup stuff of mlgtk ...). > > (suredly once i will be able to read the docs, i will know how to do most of > it, ...) There is a bit of confusion here. In fact the docs are not in the doc directory :-) but only in the README file. This is not very much, but this gives some explanation about how to compile, and how the library is organized. (The famous .mgp file is slides for a presentation, that talks about some design choices for lablgtk, but this is not very up-to-date anyway) For the easy setup, I do not understand very well. Usually you just have to do make configure USE_GL=1 make make install and everything will be taken care of. > Also here are my questions/remarks : > > 1) How can i get the size back of a widget, in particular the draweable one > (that is drawing area and GL area). I did a quick grep but didn't see any > xxx_get_xxx kind of method to be used. On any widget, use widget#misc#allocation. > 2) I wanted to modify the drawing.ml example so as add some action to the > button pressed callback. I added the callback all right, after some long > source reading, but it didn't appear to have any effect. How do you set > the event mask for it to be available. Use widget#event#add. > 3) About lablGL. The example using only single buffering are not working, not > under Togl (which give windows without content (you can see the stuff > below it in the window stack)) and not under lablgtk (which stops with a > Gpointer.Null exception, i tried to see what causes it, but it seems as > spaguetti to me, and i was not able to identiify the source of the > exception (well i wasn't able to identify any raise Null with grep in the > source code :(((). You are talking about examples/GL/simple.ml? I'm very surprised you should have any problem with it. What version of OpenGL/Mesa are you using? > 4) The gtkgl widget comprise a GL context and a drawing area. Would it be > usefull to be able to access to the drawingarea directly ? You can: gtkgl_area inherits from drawing area, so you can safely cast to it (that is, get the raw widget, cast it, and wrap it again). However I do not see any use for that, since everything useful is already possible with the gtkgl_area. Regards, Jacques