This code below is the closest to what I want however it is rotating on what I can only assume is 0, 0. I am trying to rotate it from the center of the quad.
Code: Select all
guMtxIdentity(model);
guMtxRotDeg(tmp, 'z', angle);
guMtxTransApply(model, model, x + (w/2), y + (h/2), 0.0f);
guMtxConcat(model, tmp, model);
GX_LoadPosMtxImm(model, GX_PNMTX0);
Any help would be appreciated.