From owner-ogl-sample@oss.sgi.com Fri Nov 23 03:00:37 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fANB0bY06422 for ogl-sample-outgoing; Fri, 23 Nov 2001 03:00:37 -0800 Received: from marilyn1.kirchgruppe.de (marilyn.kirchgruppe.de [193.101.184.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fANB0So06381 for ; Fri, 23 Nov 2001 03:00:29 -0800 Received: by marilyn1.kirchgruppe.de (8.11.6/8.11.6) id fANA0PK13813 for ogl-sample@oss.sgi.com; Fri, 23 Nov 2001 11:00:25 +0100 (CET) Received: (from localhost) by marilyn1.kirchgruppe.de (MSCAN) id 3/marilyn1.kirchgruppe.de/smtp-gw/mscan; Fri Nov 23 11:00:25 2001 Message-ID: <3BFE1DAD.8FB417B4@BetaResearch.de> Date: Fri, 23 Nov 2001 10:58:05 +0100 From: Sven Panne X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: OpenGL SI list Subject: [ogl-sample] .spec file syntax for assignments Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-ogl-sample@oss.sgi.com Precedence: bulk Reply-To: ogl-sample@oss.sgi.com Hi, I'm currently trying to use the .spec files for automatically generating the low-level parts of an OpenGL binding for the functional language Haskell. The first problem was that there seems to be no formal grammar or something equivalent for the two kinds of .spec files. The Perl scripts for processing them are "the grammar", I fear... :-} A currently unused feature in the .spec files is the usage of "$" on the right hand side of an assignment, including an optional offset. The exact syntax of this can only be guessed, but I'm quite sure that ogl-sample/main/doc/registry/specs/glext.spec need a patch: ---------------------------------------------------------------------- --- glextenum.pl.orig Mon Nov 19 21:41:02 2001 +++ glextenum.pl Mon Nov 19 21:43:34 2001 @@ -143,14 +143,14 @@ # Do we do an assignment? if ($f[1] eq "=") { # Do we assign to a known variable? - if (substr($f[2], 1, 1) eq "\$") { + if (substr($f[2], 0, 1) eq "\$") { # Do we add to the known variable? if ($f[3] eq "+") { $offset = $f[4]; } else { $offset = 0; } - $value = $offset + $variables{substr($f[3],2)}; + $value = $offset + $variables{substr($f[2],1)}; } else { $value = $f[2]; } ---------------------------------------------------------------------- This allows something like: ---------------------------------------------------------------------- Foo enum: BAR = $BAZ BLAH = $X + 42 ---------------------------------------------------------------------- Is this what is intended? The SI Perl script needs a similar patch, BTW. As already noticed by several people on this list, the .spec files have a few buglets, like referencing extensions which are commented out, using "@@" to mark a place to fix outside a comment, etc. Will this be fixed soon? Buglets related to the stuff above are e.g. in ogl-sample/main/doc/registry/specs/enumext.spec, which contains things like: ---------------------------------------------------------------------- ... EXT_vertex_weighting enum: MODELVIEW0_STACK_DEPTH_EXT = GL_MODELVIEW_STACK_DEPTH ... ---------------------------------------------------------------------- which should probably read: ---------------------------------------------------------------------- ... EXT_vertex_weighting enum: MODELVIEW0_STACK_DEPTH_EXT = $MODELVIEW_STACK_DEPTH ... ---------------------------------------------------------------------- Nothing very serious, but it would be nice if the .spec files could be processed automatically without prior patching or extensive workarounds in the tools using them. After all, the .spec files are really cool to get a binding for a new language up and running quickly, and I wish I had discovered them earlier... :-] Cheers, S. -- Sven Panne Fon: +49/89/99567000 Fax: +49/89/99567461 BetaResearch GmbH, Betastr. 1, D-85774 Unterfoehring mailto:Sven_Panne@BetaResearch.de http://www.betaresearch.de From owner-ogl-sample@oss.sgi.com Wed Nov 28 16:02:39 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAT02dh12836 for ogl-sample-outgoing; Wed, 28 Nov 2001 16:02:39 -0800 Received: from miranda.org (IDENT:qmailr@miranda.org [209.58.150.153]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAT02bo12830 for ; Wed, 28 Nov 2001 16:02:37 -0800 Received: (qmail 18849 invoked from network); 28 Nov 2001 23:02:36 -0000 Received: from rdu162-230-244.nc.rr.com (HELO t4) (@24.162.230.244) by miranda.org with SMTP; 28 Nov 2001 23:02:36 -0000 Message-ID: <00a501c17860$c5434c00$b8d02ad1@kem.org> From: "Hans Weber" To: Subject: [ogl-sample] glext.h versions Date: Wed, 28 Nov 2001 18:02:35 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-ogl-sample@oss.sgi.com Precedence: bulk Reply-To: ogl-sample@oss.sgi.com I downloaded http://oss.sgi.com/projects/ogl-sample/ABI/glext.h, thinking that it would be the most up-to-date version (version 7), but when I downloaded GLsdk, I found that it had a glext.h labelled as version 8. Is there a central place I should be looking for the most up-to-date glext.h? I have been adding extensions on my own as they come along, but I would prefer to use a standard version of the file. thanks for any info, Hans Weber weberh@cs.unc.edu From owner-ogl-sample@oss.sgi.com Wed Nov 28 17:34:39 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAT1Yd015892 for ogl-sample-outgoing; Wed, 28 Nov 2001 17:34:39 -0800 Received: from calliope1.fm.intel.com (fmfdns01.fm.intel.com [132.233.247.10]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAT1YUo15888 for ; Wed, 28 Nov 2001 17:34:35 -0800 Received: from fmsmsxvs040.fm.intel.com (fmsmsxv040-1.fm.intel.com [132.233.48.108]) by calliope1.fm.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.46 2001/10/25 21:02:55 root Exp $) with SMTP id AAA16319 for ; Thu, 29 Nov 2001 00:34:28 GMT Received: from orsmsx26.jf.intel.com ([192.168.65.26]) by fmsmsxvs040.fm.intel.com (NAVGW 2.5.1.6) with SMTP id M2001112816340109004 ; Wed, 28 Nov 2001 16:34:01 -0800 Received: by orsmsx26.jf.intel.com with Internet Mail Service (5.5.2653.19) id ; Wed, 28 Nov 2001 16:34:28 -0800 Message-ID: <3677E033A5F3D211AC4000A0C96B53EB066B478E@FMSMSX94> From: "Poddar, Bimal" To: "'weberh@cs.unc.edu'" Cc: "'ogl-sample@oss.sgi.com'" Subject: RE: [ogl-sample] glext.h versions Date: Wed, 28 Nov 2001 16:34:25 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="ISO-8859-1" Sender: owner-ogl-sample@oss.sgi.com Precedence: bulk Reply-To: ogl-sample@oss.sgi.com Hans, As far as I know, you have the correct location for glext.h. I am surprised that it is still at version 7 when the latest version is supposed to be version 9. I obtained the glext.h version 8 for GLsdk directly from Jon Leech. Maybe somebody else can shed light on the web mystery. Bimal -----Original Message----- From: Hans Weber [mailto:weberh@cs.unc.edu] Sent: Wednesday, November 28, 2001 3:03 PM To: ogl-sample@oss.sgi.com Subject: [ogl-sample] glext.h versions I downloaded http://oss.sgi.com/projects/ogl-sample/ABI/glext.h, thinking that it would be the most up-to-date version (version 7), but when I downloaded GLsdk, I found that it had a glext.h labelled as version 8. Is there a central place I should be looking for the most up-to-date glext.h? I have been adding extensions on my own as they come along, but I would prefer to use a standard version of the file. thanks for any info, Hans Weber weberh@cs.unc.edu From owner-ogl-sample@oss.sgi.com Wed Nov 28 18:57:40 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAT2veD18083 for ogl-sample-outgoing; Wed, 28 Nov 2001 18:57:40 -0800 Received: from mail7.nc.rr.com (mail7.southeast.rr.com [24.93.67.54]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAT2vYo18078 for ; Wed, 28 Nov 2001 18:57:34 -0800 Received: from weber1 ([24.25.15.83]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Wed, 28 Nov 2001 20:57:28 -0500 Message-ID: <000b01c17879$b33bc820$6401a8c0@weber1> From: "Hans Weber" To: Cc: "Poddar, Bimal" References: <3677E033A5F3D211AC4000A0C96B53EB066B478E@FMSMSX94> Subject: Re: [ogl-sample] glext.h versions Date: Wed, 28 Nov 2001 21:01:03 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-ogl-sample@oss.sgi.com Precedence: bulk Reply-To: ogl-sample@oss.sgi.com Bimal, Thanks for the prompt reply -- I think for now I will rely on the version in Mesa since brian paul seems to update it quite frequently. glext.h in mesa: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/mesa3d/Mesa/include/ GL/glext.h?rev=HEAD&content-type=text/x-chdr Thanks, Hans Weber ----- Original Message ----- From: "Poddar, Bimal" To: Cc: Sent: Wednesday, November 28, 2001 7:34 PM Subject: RE: [ogl-sample] glext.h versions > Hans, > > As far as I know, you have the correct location for glext.h. I am surprised > that it is still at version 7 when the latest version is supposed to be > version 9. I obtained the glext.h version 8 for GLsdk directly from Jon > Leech. Maybe somebody else can shed light on the web mystery. > > Bimal > > > -----Original Message----- > From: Hans Weber [mailto:weberh@cs.unc.edu] > Sent: Wednesday, November 28, 2001 3:03 PM > To: ogl-sample@oss.sgi.com > Subject: [ogl-sample] glext.h versions > > > I downloaded http://oss.sgi.com/projects/ogl-sample/ABI/glext.h, > thinking that it would be the most up-to-date version (version 7), but > when I downloaded GLsdk, I found that it had a glext.h labelled as > version 8. > > Is there a central place I should be looking for the most up-to-date > glext.h? I have been adding extensions on my own as they come along, > but I would prefer to use a standard version of the file. > > thanks for any info, > > Hans Weber > weberh@cs.unc.edu > >