-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
I finally found everything to make retina work with a seamless window.
Basically everything will work the same and only pixel density will change.
It is working great in the fork I'm using.
I'll explain what the changes are if anybody wants to port to OF.
GLFW window size and mouse will not be doubled in retina. everything is the same.
I've just removed pixelcoordscale, not relevant anymore.
we have to consider the framebuffer size and window size and have the appropriate GLFW callbacks.
ofMatrixStack::getRenderSurfaceSize() have to consider currentWindow->getFramebufferSize();
I'm using always high resolution on PLIST now, so the window decorations are not pixelated (title bar and colored buttons)
this can be switched in ofWindowSettings, so GLFW will handle the way framebuffer works.
// In this fork there is only ofWindowSettings, no inheritance for settings
ofWindowSettings settings;
settings.highResolutionCapable = true;
Some related commits:
dimitre@001cec0
dimitre@aa82c6b
dimitre@ba9de37