[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 17/06/2012 05:30, Gregg Tavares (社用) wrote:

You already know the backbuffer resolution. It's the same values you put on the canvas. All I'm suggesting is that specific requirement needs to get added to the WebGL spec.  If you'd like to know what resolution that will be scaled to when displayed you multiple them by window.devicePixelRatio

To be setting up a world where WebGL applications render to small drawing buffers and get zoomed up is so so so wrong. GL is all about transforms. App's should be written to draw at any size. It's not difficult.