From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA09661; Thu, 8 Apr 2004 22:20:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA09549 for ; Thu, 8 Apr 2004 22:20:07 +0200 (MET DST) Received: from host1.stonesfair.com (host1.stonesfair.com [208.184.191.145]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i38KK5YM008110 for ; Thu, 8 Apr 2004 22:20:06 +0200 Received: from mev (63-217-154-71.greystoneapts.com [63.217.154.71]) by host1.stonesfair.com (8.12.8/8.12.8) with ESMTP id i38K2rdP003856 for ; Thu, 8 Apr 2004 13:02:53 -0700 Received: from ijtrotts by mev with local (Exim 3.35 #1 (Debian)) id 1BBfzR-0003h7-00 for ; Thu, 08 Apr 2004 13:19:09 -0700 Date: Thu, 8 Apr 2004 13:19:09 -0700 To: caml-list@inria.fr Subject: Re: [Caml-list] OpenGL Message-ID: <20040408201909.GC13940@mev> Mail-Followup-To: ijtrotts@ucdavis.edu, caml-list@inria.fr References: <200404081611.25475.jdh30@cam.ac.uk> <20040407160739.GB13223@mev> <200404081735.48692.jdh30@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404081735.48692.jdh30@cam.ac.uk> User-Agent: Mutt/1.3.28i From: Issac Trotts X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 issac:01 trotts:01 ijtrotts:01 2004:99 2004:99 issac:01 trotts:01 lablgl:01 lablgl:01 plotting:01 low-level:01 camlgl:01 callbacks:01 quake:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 182 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: http://www-2.cs.cmu.edu/~quake/triangle.html -- Issac Trotts http://mallorn.ucdavis.edu/~ijtrotts (w) 530-757-8789 ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners