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 RAA20179 for caml-redistribution; Mon, 14 Jun 1999 17:50:12 +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 MAA16444 for ; Mon, 14 Jun 1999 12:58:32 +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 MAA18949 for ; Mon, 14 Jun 1999 12:58:28 +0200 (MET DST) Received: (from luther@localhost) by maxime.u-strasbg.fr (8.8.7/8.8.7) id MAA19356; Mon, 14 Jun 1999 12:59:56 +0200 (MET DST) Message-ID: <19990614125956.C19275@maxime.u-strasbg.fr> Date: Mon, 14 Jun 1999 12:59:56 +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). > The next version of the mlgtk library (gtk+ bindings for ocaml) will contain a gtkDrawing module, that beside providing a Graphics compatibility module, provides a way of defining GtkDrawingarea widgets with backing pixmap, that you can act upon in a Graphics like manner (but providing the gtkdrawingarea widget as parameter.) It is not yet complete, but already functional for drawing stuff. Mlgtk is found at : http://cristal.inria.fr/~cuoq/mlgtk.html but it don't yet contain this, write to me and i can get you a current snapshot of it. Friendly, Sven LUTHER