Drawrect

Previous topic - Next topic

Kyo

How to Drawrect not filled but draw only the edges???

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Kyo

4 Drawline instead of a single Drawrect .....  brrrrrrr :noggin:

I use Drawrect whit alpha (it's only for debug collision) .....

Schranz0r

You can easy write a function for what you need :)
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Kyo

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:

Schranz0r

Use boxcoll for all 4 sides
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Kyo

Quote from: Schranz0r on 2010-Apr-30
Use boxcoll for all 4 sides

great suggestion, thanks :good:

Kitty Hello

a hint: 4 drawrects with 1 pixel width are faster than 4 drawline calls ;)

Ian Price

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.
I came. I saw. I played.