| 52 | } |
| 53 | |
| 54 | void GXSetProjection(Mtx44 mtx, GXProjectionType type) |
| 55 | { |
| 56 | CHECK_GXBEGIN(295, "GXSetProjection"); |
| 57 | |
| 58 | __GXData->projType = type; |
| 59 | __GXData->projMtx[0] = mtx[0][0]; |
| 60 | __GXData->projMtx[2] = mtx[1][1]; |
| 61 | __GXData->projMtx[4] = mtx[2][2]; |
| 62 | __GXData->projMtx[5] = mtx[2][3]; |
| 63 | if (type == GX_ORTHOGRAPHIC) |
| 64 | { |
| 65 | __GXData->projMtx[1] = mtx[0][3]; |
| 66 | __GXData->projMtx[3] = mtx[1][3]; |
| 67 | } |
| 68 | else |
| 69 | { |
| 70 | __GXData->projMtx[1] = mtx[0][2]; |
| 71 | __GXData->projMtx[3] = mtx[1][2]; |
| 72 | } |
| 73 | |
| 74 | __GXSetProjection(); |
| 75 | __GXData->bpSentNot = 1; |
| 76 | } |
| 77 | |
| 78 | void GXSetProjectionv(const f32* ptr) |
| 79 | { |
no test coverage detected