Unfilled rectangle.

BlitzMax Forums/BlitzMax Beginners Area/Unfilled rectangle.

Grey Alien(Posted 2006) [#1]
Am I being dumb here but there is no way to draw an unfilled rectange except with 4 line commands yes? So it's probably best to make my won function call DrawRectOutline or something?


SillyPutty(Posted 2006) [#2]
You could use OpenGL and draw a quad ?


Grey Alien(Posted 2006) [#3]
I'm using the default graphics driver in MAx, that's not open GL is it?


N(Posted 2006) [#4]
Am I being dumb here but there is no way to draw an unfilled rectange except with 4 line commands yes?


Last I checked you are correct. If I'm not mistaken, Mark had said he'd do something about this and then never did.


Grey Alien(Posted 2006) [#5]
just made a function to handle it. In BlitzPlus, Rect was unfilled by default and you just stuck 1 on the end of the function call for filled.


tonyg(Posted 2006) [#6]
There are quite a few topics on this. Mark said it was an easy fix so look out for it soon, oooo, about a year ago...
Wiki post with unfilled rect comment


rdodson41(Posted 2006) [#7]
glPolygonMode( GL_FRONT_AND_BACK, GL_LINE ) should do it


N(Posted 2006) [#8]
Just doesn't work if you want the option to switch between Direct3D and OpenGL, Sushi. Would make everyone's life easier if OpenGL was the only graphics API and the world was flat, but oh well.