PDA

View Full Version : Empy Rectangle



SteeleR
10-27-2006, 03:56 AM
Sorry for the funny question but how to draw an empty rectangle sinse glRect draws only filled ones...

10x beforehand :)

jide
10-27-2006, 04:09 AM
glPolygonMode (GL_FRONT_AND_BACK, GL_LINES), or simply draw lines instead :)

SteeleR
10-27-2006, 05:02 AM
10x...
drawing lines is not an option :)

Eddywards
10-27-2006, 12:31 PM
GL_LOOP_LINE instead of GL_QUAD in your glBegin function...