HiDPI/Retina support documentation/best practices anyone?
Posted by nyholku on Nov 12, 2014; 1:13pm
URL: https://forum.jogamp.org/HiDPI-Retina-support-documentation-best-practices-anyone-tp4033528.html
Just moving to Java 8 and noticed my javax.media.opengl.awt.GLJPanel displays its contents in 1/4 corner of the panel. Right, obviously this is because Java 8 support HiDPI and I set my glViewport based on the Swing component size which is now half of the true pixel size on MacBook Pro Retina.
Now the question.
All the HiDPI related APIs (how to get the pixel size factor or what ever it is I need to apply) must be documented somewhere…
I'm surely not the only one who needs to do this so somewhere it is documented or outlined what needs to be changed when moving to HiDPI with JOGL …
Probably there are different approaches with pro's and con's and so some is bound to have thought this out and written sort of best practice instructions …
But 30 minutes of googling and I'm no closer to finding that info … so please feel free to educate me.
(Probably something obvious but I escapes me…)
cheers Kusti