hexops / mach

zig game engine & graphics toolkit
https://machengine.org
Other
3.32k stars 159 forks source link

core: improve DPI awareness & add docs #1102

Open slimsag opened 11 months ago

slimsag commented 11 months ago

Today mach-core provides:

  1. Framebuffer size in pixels (arbitrary units)
  2. Window size in pixels (arbitrary units)
  3. A guarantee that framebuffer size is always >= window size.
    • Example A: on a non-retina/HDPI display, the framebuffer size and window size may be the same.
    • Example B: on a retina/HDPI display, the framebuffer size may be twice the window size.

The following issues exist:

pdoane commented 11 months ago

DXGI_SCALING_NONE might want to be tracked elsewhere. It's a nice to have during resize events to give better stability.

slimsag commented 11 months ago

Done! https://github.com/hexops/mach/issues/1105