pex-gl / pex-context

Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.
http://pex-gl.github.io/pex-context/
MIT License
160 stars 12 forks source link

Decouple rendering resolution from DPI #4

Closed vorg closed 6 years ago

vorg commented 8 years ago

Consider this as per conversation here with Rik Arends

Essentially you create draw-pixels and device pixels and use the ratio to multiply between them.

https://twitter.com/rikarends/status/719517810507038720

vorg commented 6 years ago

Fixed in https://github.com/pex-gl/pex-context/commit/314e485c3bd60c71fc9621f3ab161045e49b358e