Login  Register

Re: Using JOGL to Draw on 2D Coordinates

Posted by gouessej on Oct 03, 2013; 2:29pm
URL: https://forum.jogamp.org/Using-JOGL-to-Draw-on-2D-Coordinates-tp4030146p4030147.html

Hi

You have to select the projection matrix and use glOrtho. What is wrong with this method? As long as your quads are in your frustum, they are visible.

Edit.: Your code is wrong, you call glOrtho when the model view matrix is the active matrix. I advise you to learn the basics of OpenGL, maybe look at the Red Book. Its examples have been ported to JOGL and are available on our Github repository.
Julien Gouesse | Personal blog | Website