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 MAA01353; Fri, 9 Apr 2004 12:57:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 MAA02121 for ; Fri, 9 Apr 2004 12:57:07 +0200 (MET DST) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i39Aw2jq006986 for ; Fri, 9 Apr 2004 12:58:02 +0200 Received: from [80.229.56.224] (helo=chetara) by ptb-relay03.plus.net with esmtp (Exim) id 1BBth3-000Ko4-Av for caml-list@inria.fr; Fri, 09 Apr 2004 10:57:05 +0000 From: Jon Harrop Organization: University of Cambridge To: caml-list@inria.fr Subject: Re: [Caml-list] OpenGL Date: Fri, 9 Apr 2004 11:57:08 +0100 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200404091157.08709.jdh30@cam.ac.uk> X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 superset:01 ocaml:01 ocaml:01 opengl:02 opengl:02 wrote:03 interface:03 wondering:04 mapping:05 platforms:05 cheers:06 rendering:06 brian:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Keywords: X-UID: 209 On Friday 09 April 2004 2:45 am, Brian Hurt wrote: > A question with respect to this subject: is it necessary to make a 1:1 > mapping of GL into Ocaml? I'm wondering if a different approach might not > work better. I'm thinking specifically of Java3D, which while it is built > on top of GL, doesn't reflect GL in it's design. The advantage of this > approach is that you can replace GL with other rendering libraries > (DirectX, for example). OpenGL is not for 3D alone, a lot of it is also 2D and some 4D. If someone were to create a higher level, 3D only interface from ocaml to OpenGL then I could not use it in my (2D) work, for example. Also, OpenGL has a very carefully thought out design which works very well. Moreover, as OpenGL is available on a superset of the platforms for which Direct3D is available, what would be the advantage in using Direct3D as a back end rather than OpenGL? Cheers, Jon. ------------------- 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