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
Example slowing down... (OpenGL/lablgl)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-12 (21:10)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Example slowing down... (OpenGL/lablgl)
On Thu, Apr 12, 2007 at 08:46:18PM +0100, Jon Harrop wrote:
> On Thursday 12 April 2007 15:33, Oliver Bandel wrote:
> > >
> >
> > There I get an error messaage that glutCreateWindow is called before
> > glutInit.
> Ugh, sorry. They changed freeglut to be more pedantic (which might actually 
> fix some crashing issues I had with Presenta). You need to call glut.init as 
> the Wikipedia example does.
> > I have not looked at the examle in detail,
> > but if it's not an OCaml-problem then that's fine.
> Well, I think it is probably just the choice of "time" function. Try it to 
> make sure though.

I will try my own attempts, and I think the
first ways will be paved twice: one thing in C,
the other in OCaml.

I hope that the names of the OCaml-functions will have very
similar names as the C-functions.

There is no seperated lablgl-documentation, right?!
So I have to look up for the C-API-functions and
guess the right names of the OCaml-pendants?!

> > So I can switch my OpenGL-based programming to
> > Ocaml and can put my C-sources into my museum of Sorce code :)
> Most people use sourceforge. ;-)
> a museum of old code? ;-)

> > It would be bad if it would be an OCaml-problem, becaue I then
> > would have to mix C- and OCaml-code; and if possible I prever
> > pure OCaml-code.
> I doubt you will need to. There is very little that will run faster in C these 
> days.

Really? :)

OK, but you can't insert Assembler-code in OCaml-code directly ;-)