PDA

View Full Version : 2D Paint program



soxfan5614
09-17-2013, 10:53 PM
Hello,

I am very new to opengl and I am supposed to develop a 2D paint program. Is there a way to draw a shape, rectangle for example, and have it not filled, just the outline?

Thanks

GClements
09-18-2013, 03:39 AM
Is there a way to draw a shape, rectangle for example, and have it not filled, just the outline?
Use GL_LINE_STRIP, GL_LINE_LOOP or GL_LINES as the mode parameter to glBegin, glDrawElements, etc to draw lines rather than filled polygons.