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

Re: [Public WebGL] How to set a canvas backing store to display units?




On 13/06/2012 12:40, Jeff Russell wrote:
I hope calls to gl.viewport and gl.scissor refer to backing store pixels, i.e. what you're actually rendering, and not some other space.
Why?

In OpenGL {,ES} the coordinates for Viewport and Scissor are expressed in the space of the client area of the host window. In most (all?) cases the scale from client pixels to device pixels is 1.0 but there is almost always a translation from client pixels to device pixels.

Regards

ÂÂÂ -Mark