Sample/snippet of how to rotate an image using gu functions?
Sample/snippet of how to rotate an image using gu functions?
I'm hoping someone can help me get an image so rotate using gu. Some code snippets or even just the function i'm supposed to use (with parameters, please) would be greatly appreciated.
if you're rendering it vertex by vertex, (TRIANGLE_STRIP/TRIANGLE_FAN etc)
sceGumRotateZ(valueInRads);
is what you need, although if you know about vertices you'd probably know about transformation matrices too.
if you're rendering SPRITES on the other hand, basically, you cant, SPRITEs are always screen aligned.
sceGumRotateZ(valueInRads);
is what you need, although if you know about vertices you'd probably know about transformation matrices too.
if you're rendering SPRITES on the other hand, basically, you cant, SPRITEs are always screen aligned.
-
- Posts: 22
- Joined: Fri May 05, 2006 12:04 am