W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: [Public WebGL] Should WebGLContextAttributes be a callback interface?

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 02 Apr 2012 10:06:16 +1000
Message-ID: <4F78ED78.2060804@mcc.id.au>
To: Glenn Maynard <glenn@zewt.org>
CC: Boris Zbarsky <bzbarsky@mit.edu>, public_webgl@khronos.org, "public-script-coord@w3.org" <public-script-coord@w3.org>
Glenn Maynard:
> The language I suggested earlier was:
> https://www.khronos.org/webgl/public-mailing-list/archives/1112/msg00037.html
>
> That's based on the conversation we had, combined with how things like
> Event constructors work, with a separate *Init dictionary type for the
> interface.  The separate *Init type isn't strictly needed here (unlike
> events, every attribute in WebGLContextAttributes would also be in
> WebGLContextAttributesInit), but it also means WebGLContextAttributes
> doesn't need to have all of its attributes nullable.
>
> Think that needs hooks to make the language simpler?  Since this is sort
> of a one-off thing (one per context type, and there are no signs that
> there'll ever be many others), it may not be worth it.

No, it looks like the kind of hook I was imagining is already there in 
the HTML spec, and that the WebGL spec already uses it in section 2.1. 
Your suggested changes to the 2.1 text look good to me.
Received on Monday, 2 April 2012 00:06:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC