From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA20419 for caml-redistribution; Fri, 23 Apr 1999 19:48:47 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA32172 for ; Fri, 23 Apr 1999 11:21:37 +0200 (MET DST) Received: from maxime.u-strasbg.fr (maxime.u-strasbg.fr [130.79.75.36]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id LAA12591 for ; Fri, 23 Apr 1999 11:21:34 +0200 (MET DST) Received: (from luther@localhost) by maxime.u-strasbg.fr (8.8.7/8.8.7) id LAA21916; Fri, 23 Apr 1999 11:22:45 +0200 (MET DST) Message-ID: <19990423112245.A21887@maxime.u-strasbg.fr> Date: Fri, 23 Apr 1999 11:22:45 +0200 From: Sven LUTHER To: Marc.Tajchman@cmla.ens-cachan.fr, caml-list@inria.fr Subject: Re: Graphics library Reply-To: luther@dpt-info.u-strasbg.fr References: <371FC6CD.4B062EE0@cmla.ens-cachan.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 In-Reply-To: <371FC6CD.4B062EE0@cmla.ens-cachan.fr>; from Marc Tajchman on Fri, Apr 23, 1999 at 03:03:09AM +0200 Sender: weis On Fri, Apr 23, 1999 at 03:03:09AM +0200, Marc Tajchman wrote: > Hi, > > I have two suggestions concerning the graphics library in > ocaml-2.0.2. > > It's simple and works well but it seems not possible to > use this package to > > 1. open several X11 windows > 2. draw "off-line" (double buffering) > > I need the second point to eliminate "flickering" (smooth > re-drawing of successive intermediate results in a fluid > simulation). > > Hope I didn't miss something in the docs. > > Thanks in advance for comments. Ihave been working on mlgtk, the gtk bindings to ocaml, and have been using it for my own graphical user interface. I was working on a project to provide a Graphics compatible module for mlgtk, but laked the time to continue working on it. If you like, you could look at the third tutorial of the mlgtk package (examples/tut_3.ml or something like that) which basically opens a window where you can click to draw small rectangles (it basically is the same as the gtk example doing the same stuff.). Hope this help, and if you have any further questions i would be glade to respond on it. (there is also a mlgtk mailing list at to subscribe send SUB to mlgtk@u-strasbg.fr) mlgtk can be obtained from : http://pauillac.inria.fr/~cuoq Friendly, Sven LUTHER