GLBasic forum

Main forum => GLBasic - en => Topic started by: Kyo on 2010-Apr-29

Title: Drawrect
Post by: Kyo on 2010-Apr-29
How to Drawrect not filled but draw only the edges???
Title: Re: Drawrect
Post by: Schranz0r on 2010-Apr-29
DRAWLINE ;)
Title: Re: Drawrect
Post by: Kyo on 2010-Apr-29
4 Drawline instead of a single Drawrect .....  brrrrrrr :noggin:

I use Drawrect whit alpha (it's only for debug collision) .....
Title: Re: Drawrect
Post by: Schranz0r on 2010-Apr-29
You can easy write a function for what you need :)
Title: Re: Drawrect
Post by: Kyo on 2010-Apr-29
I know, but I'm crazy about managing collisions, I do not want to write more code until I finish it  =D

thank's for help  :booze:
Title: Re: Drawrect
Post by: Schranz0r on 2010-Apr-30
Use boxcoll for all 4 sides
Title: Re: Drawrect
Post by: Kyo on 2010-Apr-30
Quote from: Schranz0r on 2010-Apr-30
Use boxcoll for all 4 sides

great suggestion, thanks :good:
Title: Re: Drawrect
Post by: Kitty Hello on 2010-Apr-30
a hint: 4 drawrects with 1 pixel width are faster than 4 drawline calls ;)
Title: Re: Drawrect
Post by: Ian Price on 2010-Apr-30
Quote from: Kitty Hello on 2010-Apr-30
a hint: 4 drawrects with 1 pixel width are faster than 4 drawline calls ;)

That's handy to know. :)

Any chance of a DRAWELLIPSE X,Y,WIDTH,DEPTH,RGB(X,X,X) command Gernot? I mentioned this aaaaaaaages ago, but forgot about it.