English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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 (19:51)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Example slowing down... (OpenGL/lablgl)
On Thursday 12 April 2007 15:33, Oliver Bandel wrote:
> > http://www.ffconsultancy.com/products/ocaml_for_scientists/visualisation/
> 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.

> 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. ;-)

> 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 

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists