Login  Register

What is the maximum value for Y which can be passed to gluOrtho2D?

Posted by cristian on Sep 09, 2019; 6:48am
URL: https://forum.jogamp.org/What-is-the-maximum-value-for-Y-which-can-be-passed-to-gluOrtho2D-tp4040055.html

I have somewhere in the code something like this:
GLU.gluOrtho2D(-1, 1, 0, Double.MAX_VALUE)
and after that i draw some lines which has a bound on Double.MAX_VALUE.
The problem is the lines are not visible.

Do you know what is the maximum Y which can be passed to GLU.gluOrtho2D?
If instead of Double.MAX_VALUE i'm using Integer.MAX_VALUE  or Math.pow(10, 38) then everything it's fine.

I searched on the internet but i didn't find. I checked also Microsoft docs, about the native method glOrtho and i didn't find any limit.