[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Typed WebGLArray sequence parameter types
- To: Shiki Okasaka <firstname.lastname@example.org>
- Subject: Re: [Public WebGL] Typed WebGLArray sequence parameter types
- From: Kenneth Russell <email@example.com>
- Date: Wed, 6 Jan 2010 17:55:16 -0800
- Cc: Vladimir Vukicevic <firstname.lastname@example.org>, email@example.com
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1262829320; bh=iqSNacYA7y9gWcz7s68fXKDAsgo=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=jOFWojJuj1HNTtKl4CTTrgOXPLk/XPQbPz2O0dqPlusFNbOMFCrBPyW76rX/uVRz+ bGIPH+A1QrPWPX0cuCD0g==
- Domainkey-signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding:x-system-of-record; b=IdgLRzhkdlQH3wbLHegEOcry4jj8/Vigveyp61TCO90SbfACUQkE9H3X4ucroZ0Bw A0GDpHC97Ik9z0KiNR7Cg==
- In-reply-to: <firstname.lastname@example.org>
- References: <email@example.com> <4B3068B2.firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org>
- Sender: email@example.com
On Wed, Jan 6, 2010 at 1:07 AM, Shiki Okasaka <firstname.lastname@example.org> wrote:
> I've uploaded a validated WebGL IDL file at,
> This is written in the current Web IDL editor's draft  format with one
> extended keyword 'byte' for 8-bit integers.
> Does this look reasonable? Maybe the getter and setter types should be
> changed as well?
Thanks, this looks great. It's fantastic that you've verified the IDL.
I think we should switch over the spec's IDL to this version.
Given what we now understand about the WebIDL conversion rules, I
think we should switch the getters and setters for the WebGLArray
types to be precisely what the underlying array is supposed to hold.
>  http://dev.w3.org/2006/webapi/WebIDL/
> - Shiki
> On Wed, Dec 23, 2009 at 2:28 AM, Kenneth Russell <email@example.com> wrote:
>> On Mon, Dec 21, 2009 at 10:35 PM, Vladimir Vukicevic
>> <firstname.lastname@example.org> wrote:
>> > On 12/21/2009 8:38 PM, Shiki Okasaka wrote:
>> >> Is this possible to modify typed WebGLArray sequence parameter types
>> >> in the IDL definitions as below?
>> >> * WebGLByteArray:
>> >> sequence<long> -> sequence<octet>
>> >> * WebGLUnsignedByteArray:
>> >> sequence<unsigned long> -> sequence<octet>
>> >> * WebGLShortArray:
>> >> sequence<long> -> sequence<short>
>> >> * WebGLUnsignedShortArray:
>> >> sequence<unsigned long> -> sequence<unsigned short>
>> >> This change would make the generated interfaces for statically typed
>> >> languages (e.g. Java) more useful.
>> >> Note currently Web IDL does not have a primitive type for 8-bit signed
>> >> integer values. If it is useful for WebGL, maybe we can propose an
>> >> addition of it to Web IDL as Geolocation WG requested to add 'double'
>> >> in addition to 'float' .
>> > Yep, that's the main reason why long/unsigned long are used instead of
>> > octet
>> > -- if octet was used, then it becomes impossible to actually specify
>> > signed
>> > 8-bit integers. For short, we decided to follow the same convention.
>> > However, maybe a workaround would be to add a typedef somewhere for our
>> > own
>> > signed_octet type, by default typedef'd to unsigned long, but with a
>> > statement in the spec saying that this should be a signed 8 bit type if
>> > the
>> > language supports it?
>> Sounds like a good workaround.
>> You are currently subscribe to email@example.com.
>> To unsubscribe, send an email to firstname.lastname@example.org with
>> the following command in the body of your email:
You are currently subscribe to email@example.com.
To unsubscribe, send an email to firstname.lastname@example.org with
the following command in the body of your email: