-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|684|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs


 
steve_ancell
Created : 22 August 2009
Edited : 22 August 2009
System : Linux

Playing with XNA again.



It seems apparent that XNA has no native Rect command, so I thought I would have a go at coding one myself.




Usage would be something like...

 

Comments


Saturday, 22 August 2009, 15:52
Afr0
Oooh, kinda cool!
Saturday, 22 August 2009, 15:55
steve_ancell
Cheers Afr0 . I'm planning on coding an equivalent to the Blitz command Oval next.
Saturday, 22 August 2009, 15:57
steve_ancell
I also forgot to mention that I made this code as public domain, so use it as you wish
Saturday, 22 August 2009, 16:21
steve_ancell
There is one bug that I need to solve. The rectangle will not render if the (x, y) is less then (0, 0).

But it may still come in handy for making grids !
Saturday, 22 August 2009, 17:09
steve_ancell
Bug now fixed !