[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] WebGLContextAttributes

On Dec 22, 2009, at 5:54 PM, Kenneth Russell wrote:

> The WebGLContextAttributes interface currently uses DOMStrings for the
> values passed to the NameSetter and returned from the NameGetter.
> Should these be type "any" instead? Currently creating such an object
> would be unnatural in JavaScript:
> gl = c.getContext("experimental-webgl",
>    { antialias: "false",
>      stencil: "false" });
> It would be more natural to write:
> gl = c.getContext("experimental-webgl",
>    { antialias: false,
>      stencil: false });
> We would need to specify the type of each value stored in the dictionary.
> This would make this interface behave more like the various get
> methods which return type "any".

I would have no problem with this.


You are currently subscribe to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: