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 (20:20)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] OpenGL
On Thu, Apr 08, 2004 at 05:35:48PM +0100, Jon Harrop wrote:
> On Wednesday 07 April 2004 5:07 pm, Issac Trotts wrote:
> > Did you look at LablGL?
> Yes, it's lablGL that I'm working with. It's excellent for the basic stuff 
> (plotting triangles), but things quickly get quite hairy. Specifically, my 
> program needs the GLU tesselator (the reimplementation of which in ocaml is 
> prohibitively complicated). The problems with the interface provided by 
> lablGL (which can never be made to work in its current state, BTW) are 
> actually much more deep seated, and apply to lots of other parts of the 
> library.

What it is about lablGL that means it can never be made to work?
> There is another OpenGL interface library, IIRC, which is very low-level. 
> However, I don't like this approach as it is then easy for ocaml programs to 
> crash the OS, and stability and safety are surely two of the most important 
> advantages of ocaml.

That one is called camlgl, which seems to have been abandoned.

> I have gone some way to reimplementing the lablGL interface to the GLU 
> tesselator but it is very difficult. Not to mention the other parts of the 
> libraries which will need equivalent things done to them...

I already wrote a binding for GLU using CamlIDL, but I don't recommend
it since GLU relies so much on callbacks.  It would probably be better to
wrap Jonathan Shewchuck's Triangle code:

Issac Trotts
(w) 530-757-8789

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