I'd like to jump in here as I'm having some related issues, don't know if a new post is preferred or not.
Just trying to get the proper result on every mac. I don't really care much for this Cocoa thing.
So what I'm doing is this:
String OS = System.getProperty("os.name", "generic").toLowerCase(Locale.ROOT);
if ((OS.indexOf("mac") >= 0) || (OS.indexOf("darwin") >= 0)) {
glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GL11.GL_FALSE);
}
I'm doing deferred rendering, so in the end I'm just doing a "blit" to the default FB. This is how I get the dimension of the default FB:
IntBuffer w = BufferUtils.createIntBuffer(1);
IntBuffer h = BufferUtils.createIntBuffer(1);
glfwGetFramebufferSize(window, w, h);
blitArea = new Coo(w.get(), h.get());
Printer.ln("---blit size: " + blitArea.x() + " " + blitArea.y());
This works on a new Imac I have. But on a macbook I'm getting a 4x zoom as a result. Everything is fine and dandy in windowed mode, but this is going full screen. I had problems on the IMac too, but solved it with the first code paragraph. Any hints for me?