bgRotate() Rotate from center of graphic
Posted: Wed Sep 30, 2009 1:15 pm
Hi,
I am new to development for the NDS but I am familiar with C++ and common programming concepts. Basically I am using grit to load a 16 bit .png image in as a background. I am then trying to make the background rotate in either direction.
I have found the function bgRotate() which I can use to rotate the background in an anti-clockwise direction around the top left corner. Can anyone tell me how I can rotate the graphic around its center point rather than the top left corner? I have already attempted to use the bgSetCenter() function but instead of keeping the background at its original coodinates and only moving the center point for the rotation, the image is being moved also.
I have Googled my socks off but cannot find anything that makes it any clearer to me. Any help would be much appreciated.
Cheers,
Tom
I am new to development for the NDS but I am familiar with C++ and common programming concepts. Basically I am using grit to load a 16 bit .png image in as a background. I am then trying to make the background rotate in either direction.
I have found the function bgRotate() which I can use to rotate the background in an anti-clockwise direction around the top left corner. Can anyone tell me how I can rotate the graphic around its center point rather than the top left corner? I have already attempted to use the bgSetCenter() function but instead of keeping the background at its original coodinates and only moving the center point for the rotation, the image is being moved also.
I have Googled my socks off but cannot find anything that makes it any clearer to me. Any help would be much appreciated.
Cheers,
Tom