-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[idea] macOS - seamless retina window (high res or not) #8365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'll keep using |
@dimitre this looks like a great middle ground solution. |
one more commit to complete ofDrawBitmapString |
Thanks for digging into this. I figured it was be more or less straightforward, just finding all the detailed spots to adjust to the right calls. |
Great @danomatika testing is welcome |
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.
Some related commits:
dimitre@001cec0
dimitre@aa82c6b
dimitre@ba9de37
The text was updated successfully, but these errors were encountered: