Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Graphics library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-06-14 (15:50)
From: Sven LUTHER <luther@m...>
Subject: Re: Graphics library
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 :

but it don't yet contain this, write to me and i can get you a current snapshot
of it.