Browse thread
[Caml-list] OpenGL
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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:
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