new function in libogc GX
Posted: Sat Nov 29, 2008 12:26 am
This is for libogc, but I figured it was a suggestion, so here it is.
I was thinking it would be really nice to have a function in GX comparable to GX_SetDispCopyYScale to do it for the XScale instead (i.e., GX_SetDispCopyXScale). It can't be too much different from YScale, and so would be easy to implement (I would hope). I tried doing so myself, but in this line in the YScale function:
I would have no idea what reg to put in place of the one there for YScale. Also, in these lines:
I have no idea what that even does, though I would guess they would need to be changed somehow...
I was thinking it would be really nice to have a function in GX comparable to GX_SetDispCopyYScale to do it for the XScale instead (i.e., GX_SetDispCopyXScale). It can't be too much different from YScale, and so would be easy to implement (I would hope). I tried doing so myself, but in this line in the YScale function:
Code: Select all
GX_LOAD_BP_REG(0x4e000000|yScale);
Code: Select all
ht = _SHIFTR(_gx[0xcc],12,10)+1;
return __GX_GetNumXfbLines(ht,yScale);