piksel
piksel copied to clipboard
A simple 2D graphics library for C++
Main changes in `updateFramebufferSize` to calculate `displayPixelRatio` and re-use it when not compiling with Emscripten to report a correct mouse position (when compiling for the web the `updateFramebufferSize` isn't called...
Let's consider as an example a window of size 500x500 pixels. If I manually resize the window used by piksel, the scaling to be used while drawing is adapted automatically,...
This was found by @Sygmei, see https://itch.io/post/617254