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

[Public WebGL] WebGLContextAttributes

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".

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: