W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2012

Re: [whatwg] [canvas] Proposal for supportsContext

From: Dean Jackson <dino@apple.com>
Date: Mon, 10 Sep 2012 13:09:44 -0700
Message-id: <BF363E11-0E5F-4F92-B3FD-C23EF48BDEA5@apple.com>
To: Rick Waldron <waldron.rick@gmail.com>
Cc: "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>, Tobie Langel <tobie.langel@gmail.com>

On Sep 10, 2012, at 1:03 PM, Rick Waldron <waldron.rick@gmail.com> wrote:

> 
> 
> On Mon, Sep 10, 2012 at 3:56 PM, Tobie Langel <tobie.langel@gmail.com> wrote:
> > This is actually what we could do now. We could hide window.WebGLRenderingContext
> > when we can't create one. But then we'd have to hide all these too:
> >
> >        attribute [Conditional=WEBGL] WebGLActiveInfoConstructor WebGLActiveInfo;
> >        attribute [Conditional=WEBGL] WebGLBufferConstructor WebGLBuffer;
> >        attribute [Conditional=WEBGL] WebGLFramebufferConstructor WebGLFramebuffer;
> >        attribute [Conditional=WEBGL] WebGLProgramConstructor WebGLProgram;
> >        attribute [Conditional=WEBGL] WebGLRenderbufferConstructor WebGLRenderbuffer;
> >        attribute [Conditional=WEBGL] WebGLRenderingContextConstructor WebGLRenderingContext;
> >        attribute [Conditional=WEBGL] WebGLShaderConstructor WebGLShader;
> >        attribute [Conditional=WEBGL] WebGLShaderPrecisionFormatConstructor WebGLShaderPrecisionFormat;
> >        attribute [Conditional=WEBGL] WebGLTextureConstructor WebGLTexture;
> >        attribute [Conditional=WEBGL] WebGLUniformLocationConstructor WebGLUniformLocation;
> 
> Oh my.  All of these are globals!? *Sigh*
> 
> Has anyone considered a single global WebGL object with all of those constructors defined as properties?


I'm not sure if this is getting slightly off topic. Maybe you could make that proposal to the WebGL working group?

Dean
Received on Monday, 10 September 2012 20:10:17 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:45 UTC