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=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 5E25EBC6C for ; Tue, 1 May 2007 09:24:45 +0200 (CEST) Received: from mail21.bluewin.ch (mail21.bluewin.ch [195.186.18.66]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l417OiNl019941 for ; Tue, 1 May 2007 09:24:45 +0200 Received: from [10.0.1.2] (85.1.97.190) by mail21.bluewin.ch (Bluewin 7.3.121) id 45F510CB00D3620D for caml-list@inria.fr; Tue, 1 May 2007 07:24:44 +0000 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <463663AA.7020109@sci.utah.edu> References: <463663AA.7020109@sci.utah.edu> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <5E2634ED-6684-470A-A25D-FD4890B71805@epfl.ch> Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= Subject: Re: [Caml-list] glGetInteger not in lablGL? Date: Tue, 1 May 2007 09:24:57 +0200 To: Caml List X-Mailer: Apple Mail (2.752.2) X-Miltered: at concorde with ID 4636EB3D.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 buenzli:01 lablgl:01 ocaml:01 lablgl:01 avoided:01 sig:01 46,:98 caml-list:01 caml-list:01 epfl:02 opengl:02 library:03 daniel:04 daniel:04 Le 30 avr. 07 =E0 23:46, Carlos Scheidegger a =E9crit : > (and I'm not even sure whether caml-list is the right place for this) There's no other list so I think it's right. > but has anyone ever needed to > do the equivalent of glGetInteger(GL_VIEWPORT, x) in OCaml using =20 > lablGL? Usually I don't need it because unless the viewport is specified by a =20= third party library, this information is usually setup by you, hence =20 you can store it somewhere for yourself if needed. > Is this unimplemented? Yes it is unimplemented. I don't think it is worth implementing =20 because in general querying OpenGL state with glGet (e.g. to get the =20 current matrix) should be avoided, it is too slow [1]. It's faster to =20= have a mirror of this information on your side. Best, Daniel [1] http://www.mesa3d.org/brianp/sig97/perfopt.htm#Misc