refraction
PCSX2 Coder
hap said:If destination and source are in the same memoryblock, use memmove instead of memcpy.
thats the thing tho, you dont wanna just move the memory, you wanna cut an entire chunk off it
.............................................
**..........................................
**..........................................
say thats a texture on the far left on the screen, this is what youd get if you just moved the pixels left
..............................................*
*............................................*
*............................................
you dont want that tho, you wanna chop off the pixels so your left with
...............................................
*............................................
*............................................
the blank pixels on the right get redrawn by the system, so it doesnt matter that they have nothing in. and the only way i know how to do this sucessfully is the for statement, unless you can do a memmove then some how come up with a way to blank out the certain positions in the array