Could somebody make a bit complex function for me :P

support for the PSP toolchain
Post Reply
perli55
Posts: 3
Joined: Sun Aug 28, 2011 7:33 pm

Could somebody make a bit complex function for me :P

Post by perli55 » Thu Oct 13, 2011 7:38 pm

This is pretty dumb but i am unable to figure it out :S
It should draw a box but the vectors can be of any position,
so top-left,top-right,down-left,down-right order restriction is bypassed,
it connect all the points with a line in the given order and fills the inside
and all with the given 32-bit color.

struct vector {
int x;
int y;
}

void drawBox(vector p1,vector p2,vector p3,vector p4,unsigned int color);

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests