I don't know if I'm correct or not, but this is what I noticed. The BlitRotated function seems to draw the Surface using (x, y) as the center point. Maybe it's just me, but this is sort of inconsistant with the other Blit's that draw from the top left corner. I think it would be better if BlitRotated were to also draw from top left. Saves me from having to use a few offsetting calculations :P
id like to see BlitRotatedAroundPoint. I started to write it but ended up not needing it so I gave up
it would work like this...
- Code:
void Rasterizer2d::BlitRotated(Point startPos, Point rotAround, int amount, Surface* image) {
//Point newPos = ? (do some trig using startPos, rotAround, and amount)
BlitRotated(newPos, amount, image);
}
pretty easy, if i needed it real bad id figure out the trig but im hoping one of you brilliant people will figure it out for me before i have to think about