Drawing a non solid rect

BlitzMax Forums/BlitzMax Programming/Drawing a non solid rect

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

No, but it's fairly easy to do it on your own. Or you can modify the DrawRect function.

Like this one:
Function DrawRectHollow(X!,Y!,W!,H!)
     glBegin(GL_LINE_LOOP)
     glVertex2d(X,Y)
     glVertex2d(X+W,Y)
     glVertex2d(X+W,Y+H)
     glVertex2d(X,Y+H)
     glEnd()
End Function


That will work with your standard GLMax2D stuff. Now let the people who say that using GL functions with Max2D is a bad idea harp on me.