From Sven.Panne@aedion.de Tue Jul 26 08:48:24 2005 Received: with ECARTIS (v1.0.0; list ogl-sample); Tue, 26 Jul 2005 08:48:29 -0700 (PDT) Received: from aedion.de (aedion.de [217.160.171.181]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j6QFmNH9009999 for ; Tue, 26 Jul 2005 08:48:24 -0700 Received: from [192.168.1.33] (p549A634B.dip.t-dialin.net [84.154.99.75]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by aedion.de (Postfix) with ESMTP id C4BC6C908; Tue, 26 Jul 2005 16:46:27 +0100 (IST) From: Sven Panne To: ogl-sample@oss.sgi.com Subject: GLsizei type Date: Tue, 26 Jul 2005 17:45:53 +0200 User-Agent: KMail/1.8 Cc: OpenAL MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507261745.54071.Sven.Panne@aedion.de> X-archive-position: 48 X-ecartis-version: Ecartis v1.0.0 Sender: ogl-sample-bounce@oss.sgi.com Errors-to: ogl-sample-bounce@oss.sgi.com X-original-sender: Sven.Panne@aedion.de Precedence: bulk X-list: ogl-sample Sorry for abusing this list a bit, but I think here are some of the best people for answering the following question (if not, please give me a hint where to ask instead): What is the rationale for "GLsizei" being an "int" on all platforms I know of and not an "unsigned int"? Reading the description in the OpenGL spec, one might expect the former, but not really the latter. Is it because of some legacy reason with IRIS GL? Is it simply because of the name (which might be GLsizeui otherwise)? Or is it simply by accident? :-) This is not an academic question, we are discussing how to standardise similar types for OpenAL (http://www.openal.org/), see e.g. the mail at: http://opensource.creative.com/pipermail/openal-devel/2005-July/000974.html Cheers, S. From akin@pobox.com Tue Jul 26 12:27:58 2005 Received: with ECARTIS (v1.0.0; list ogl-sample); Tue, 26 Jul 2005 12:28:03 -0700 (PDT) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j6QJRwH9029088 for ; Tue, 26 Jul 2005 12:27:58 -0700 Received: (qmail 5592 invoked from network); 26 Jul 2005 19:26:02 -0000 Received: from dsl092-028-011.sfo4.dsl.speakeasy.net (HELO tuolumne.arden.org) (ardenakin@[66.92.28.11]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 26 Jul 2005 19:26:02 -0000 Received: from tuolumne.arden.org (localhost.localdomain [127.0.0.1]) by tuolumne.arden.org (8.13.1/8.13.1) with ESMTP id j6QJQ1AR031348 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Jul 2005 12:26:01 -0700 Received: (from akin@localhost) by tuolumne.arden.org (8.13.1/8.13.1/Submit) id j6QJQ1wJ031347; Tue, 26 Jul 2005 12:26:01 -0700 Date: Tue, 26 Jul 2005 12:26:01 -0700 From: Allen Akin To: Sven Panne Cc: ogl-sample@oss.sgi.com, OpenAL Subject: Re: GLsizei type Message-ID: <20050726192601.GH5687@tuolumne.arden.org> Mail-Followup-To: Sven Panne , ogl-sample@oss.sgi.com, OpenAL References: <200507261745.54071.Sven.Panne@aedion.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200507261745.54071.Sven.Panne@aedion.de> X-archive-position: 49 X-ecartis-version: Ecartis v1.0.0 Sender: ogl-sample-bounce@oss.sgi.com Errors-to: ogl-sample-bounce@oss.sgi.com X-original-sender: akin@pobox.com Precedence: bulk X-list: ogl-sample On Tue, Jul 26, 2005 at 05:45:53PM +0200, Sven Panne wrote: | What is the rationale for "GLsizei" being an "int" on all platforms I know of | and not an "unsigned int"? I don't have an authoritative answer -- that decision was made before I joined the OpenGL project and I don't recall discussing it with any of the original team. But my guess is that there were two concerns: (1) Arithmetic on unsigned values in C doesn't always yield intuitively correct results (e.g. width1-width2 is positive when width1