So, before I get anymore confused on what this method is called, let me demonstrate:
I want to take this sprite
Code:
and insert it into a rectangle area. The rectangle starts at 2,4, ends at 9,7, origin is 0,0, and the sprite is inserted at 0,1. The resulting image should look like:
Code:
Does anyone know if a function exists in asm? I can make one, but it will be horribly unoptimized... I can write it in C, but that's still not fast...
If you don't understand what I am talking about, let me know...
I want to take this sprite
Code:
00011000
01100110
11000011
11000011
01100110
0001100
and insert it into a rectangle area. The rectangle starts at 2,4, ends at 9,7, origin is 0,0, and the sprite is inserted at 0,1. The resulting image should look like:
Code:
x--->
y
|
v
0000000000.
0000000000.
0000000000.
0000000000.
0000001100
0010011000
0001100000
0000000000
..
outside rect is is not to be drawn in, and is marked with a period.
Does anyone know if a function exists in asm? I can make one, but it will be horribly unoptimized... I can write it in C, but that's still not fast...
If you don't understand what I am talking about, let me know...