Login  Register

Re: how to draw a rectangle with outline only using 'glRecti(...)' ?

Posted by gouessej on Aug 10, 2015; 7:34am
URL: https://forum.jogamp.org/how-to-draw-a-rectangle-with-outline-only-using-glRecti-tp4035058p4035060.html

To draw a surface with outlined polygons,
            call
           
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
https://www.opengl.org/sdk/docs/man3/xhtml/glPolygonMode.xml

elect wrote
you shouldn't use deprecated OpenGL.
Actually, understanding the fixed pipeline is still very useful as there is still some hardware that doesn't support OpenGL 4.
Julien Gouesse | Personal blog | Website