MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / GXSetProjection

Function GXSetProjection

src/dolphin/src/gx/GXTransform.c:54–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void 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
78void GXSetProjectionv(const f32* ptr)
79{

Callers 3

DrawFrameFunction · 0.85
InitDisplayMethod · 0.85
InitDisplayMethod · 0.85

Calls 1

__GXSetProjectionFunction · 0.85

Tested by

no test coverage detected