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

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



On Tue, 18 Dec 2012, Florian Bsch wrote:
> On Tue, Dec 18, 2012 at 8:04 AM, Ian Hickson <ian@hixie.ch> wrote:
> > 
> > I really don't understand why, given that you have a scene graph 
> > object and a place for the scene graph to be rendered to, you feel 
> > it's important to have a middle-man object.
>
> We don't have a scene-graph object.

Poor terminology. I meant the context with its state.


> > I understand that there is a concern that authors will accidentally 
> > change the settings and that changing the settings used in a 
> > particular context/ canvas pair is expensive. But I don't see how a 
> > middleman object would help. If an author could accidentally use 
> > different settings when binding a context to a canvas, why couldn't an 
> > author accidentally use a different middle man object?
>
> It's not a middle-man, it's a drawing buffer.

That's what a <canvas> is.

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