Login  Register

Re: Get pixel Coordinates

Posted by elseine on Apr 20, 2016; 2:01pm
URL: https://forum.jogamp.org/Get-pixel-Coordinates-tp4036625p4036633.html

World and Screen coordinates.

I have a box that use World Coordinates (coordinates inside GL) in the draw. Now, I want to put text inside the box. To that I want to use TextRenderer. The problem is: TextRenderer use Screen Coordinates, not World Coordinates. I need to know: if the box is inside the screen; and the screen's coordinates of that box, not the world coordinates.

I dont know if I explain well.