From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 75B50BC75 for ; Wed, 2 Mar 2005 09:17:03 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j228H3wK009212 for ; Wed, 2 Mar 2005 09:17:03 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA04686 for ; Wed, 2 Mar 2005 09:17:02 +0100 (MET) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j228H2XP009209 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 2 Mar 2005 09:17:02 +0100 Received: from [80.229.56.224] (helo=chetara) by ptb-relay03.plus.net with esmtp (Exim) id 1D6P2T-000LgP-Ve for caml-list@inria.fr; Wed, 02 Mar 2005 08:17:02 +0000 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@inria.fr Subject: lablGL and the top-level Date: Wed, 2 Mar 2005 08:18:15 +0000 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503020818.16207.jon@jdh30.plus.com> X-Miltered: at concorde with ID 4225767F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4225767E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; lablgl:01 ocaml:01 lablglut:01 mainloop:01 ocaml:01 frog:98 glut:01 glut:01 opengl:01 caml:02 guess:02 graphics:02 objective:02 top-level:02 top-level:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: It just occurred to me that the ability to run an interactive top-level to write and test OpenGL programs would be quite alluring. In particular, this would be a great way to introduce students to ocaml and graphics. However, I'd like to use lablglut, which requires execution to be handed over to glut via a final call to glut.mainLoop. So, what would be the best way to get glut and the ocaml top-level to interoperate? I guess you could write a glut idle function which provokes the top-level into asking for more input, but the display wouldn't be updated in the mean time. Any ideas? -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://ffconsultancy.com/products/ocaml_for_scientists