Login  Register

Re: Retina support in OSX?

Posted by runiter on Oct 07, 2015; 5:42pm
URL: https://forum.jogamp.org/Retina-support-in-OSX-tp4029248p4035434.html

I spent lots of time trying to figure how I can call setSurfaceScale from Ardor3D and I finally figured it out.

I called it this way:

((JAWTWindow)((JoglNewtAwtCanvas)canvas).getNativeWindow()).setSurfaceScale(new float[] {2, 2});

Is this correct?
The above code does not throw any errors but it doesn't do what it's supposed to do either. The canvas rendering region is not resized at all. It looks exactly the same regardless of the above code. What am I doing wrong?

Edit: I'm testing it in Windows and I just realized that this function is OS dependent. I will test it on a mac when I can get one to see if it works in there.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D