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
[Caml-list] OpenGL
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-08 (16:37)
From: Anil Madhavapeddy <anil@r...>
Subject: Re: [Caml-list] OpenGL
On Wed, Apr 07, 2004 at 09:07:39AM -0700, Issac Trotts wrote:
> On Thu, Apr 08, 2004 at 04:11:25PM +0100, Jon Harrop wrote:
> > 
> > On Thursday 08 April 2004 3:53 pm, John Goerzen wrote:
> > > I'm just saying that I think that
> > > "Ocaml has a robust set of tools for real-world uses" is inaccurate.
> > 
> > Yes, I agree. Personally, I would like to see a carefully thought out 
> > interface to OpenGL, GLU etc. They are very stable and mature libraries which 
> > were superbly thought out but, unfortunately, suffer from a low-level API 
> > which sometimes ends up in a lot of "void *" raw data getting passed around 
> > and kept. I do not know of an existing, elegant interface to these libraries 
> > in any functional language and, IMHO, it would be a big but very worthwhile 
> > undertaking to create such an interface. I think this would make a good PhD 
> > for someone...
> Did you look at LablGL?

LablGL provides an almost 1-1 mapping between the C and OCaml OpenGL
calls... it works really well when working with the simpler bits of
OpenGL, but it rapidly descends into using a bunch of raw types for
things like the GLU tessellator.

Still, Ocaml/LablGL is a great combination for me so far - drawing
individual scene elements functionally, and rendering them with
'imperative glue' seems a natural fit for Ocaml.

Anil Madhavapeddy                       
University of Cambridge                

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: