drawrect and it being solid?

BlitzMax Forums/BlitzMax Beginners Area/drawrect and it being solid?

is there an option like in Blitz3D to make the rect just an outline, or do we have to draw the four lines, cant find anything in the docs.....

Have to draw it yourself. Make a nice function.

btw, you didn't even have to use search to find the answer as there was another thread just below yours:

http://www.blitzbasic.com/Community/posts.php?topic=68859

Courtesy of me :D

I wouldnt be all proad about it, cos you should have searched ;)

Bah they should have inlcuded it :P

SetDrawMode
vvv see sig vvv

rich d, the lines and points created by your methodf are darker than the filled rectangles. And GL_POINT keeps changing colour.

They don't look like they are darker... maybe its your computer?
SuperStrict

Const DRAW_POINT:Int = GL_POINT
Const DRAW_LINE:Int = GL_LINE
Const DRAW_FILL:Int = GL_FILL

Function SetDrawMode(mode:Int)
    glPolygonMode(GL_FRONT_AND_BACK, mode)
EndFunction

Graphics(640, 480)

SetDrawMode(DRAW_POINT)
DrawOval(10,10,100,100)

SetDrawMode(DRAW_LINE)
DrawOval(160, 10, 100, 100)

SetDrawMode(DRAW_FILL)
DrawOval(320, 10, 100, 100)

Flip

WaitKey()

Also I'm not sure what you mean by GL_POINT keeps changing color.