From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 8A35FBC69 for ; Thu, 12 Apr 2007 21:51:02 +0200 (CEST) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3CJp1h3029822 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 12 Apr 2007 21:51:02 +0200 Received: from [80.229.56.224] (helo=beast.local) by pih-relay04.plus.net with esmtp (Exim) id 1Hc5Jt-0008RC-Gg for caml-list@yquem.inria.fr; Thu, 12 Apr 2007 20:51:01 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Example slowing down... (OpenGL/lablgl) Date: Thu, 12 Apr 2007 20:46:18 +0100 User-Agent: KMail/1.9.5 References: <20070411222521.GA1603@first.in-berlin.de> <200704120815.24433.jon@ffconsultancy.com> <20070412143329.GB396@first.in-berlin.de> In-Reply-To: <20070412143329.GB396@first.in-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704122046.18632.jon@ffconsultancy.com> X-Miltered: at discorde with ID 461E8DA5.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lablgl:01 bandel:01 ocaml:01 wikipedia:01 ocaml:01 ocaml-code:01 ocaml-code:01 presenta:98 frog:98 sourceforge:01 wrote:01 oliver:01 caml-list:01 glut:01 opengl:02 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 days. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. OCaml for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists