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

Re: [Public WebGL] using the same context with multiple canvases

On Sun, 11 Nov 2012, Gregg Tavares (社~T) wrote:
> This doesn't work for WebGL
>    var context = new WebGLRenderingContext();
>    canvas1.setContext(context)
> It's missing the creation attributes for the canvas (alpha? depth? 
> stencil? anti-alias? preserved? premultiplied?)

If these settings are expected to change from canvas to canvas for the 
same context (are they?) then we could just have them in a second argument 
to setContext().

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'