mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-23 15:31:15 +00:00
Create debug macros for common functions (#1597)
* Create debug macros for common functions * Revert NDEBUG change * MALLOCR -> MALLOC_R * DEBUG -> OOT_DEBUG * Use the same name for debug and non-debug matrix functions * Fix file/line argument order * Revert g[s]DPNoOp[Tag] * Use SystemArena_MallocDebug directly in GameAlloc_MallocDebug * MTXF_TO_MTX -> MATRIX_TO_MTX
This commit is contained in:
parent
e146d7bc26
commit
cd917b0cb8
314 changed files with 1352 additions and 1294 deletions
|
@ -849,7 +849,7 @@ void EnRr_Draw(Actor* thisx, PlayState* play) {
|
|||
Vec3f zeroVec;
|
||||
EnRr* this = (EnRr*)thisx;
|
||||
s32 i;
|
||||
Mtx* segMtx = Graph_Alloc(play->state.gfxCtx, 4 * sizeof(Mtx));
|
||||
Mtx* segMtx = GRAPH_ALLOC(play->state.gfxCtx, 4 * sizeof(Mtx));
|
||||
|
||||
OPEN_DISPS(play->state.gfxCtx, "../z_en_rr.c", 1478);
|
||||
|
||||
|
@ -864,7 +864,7 @@ void EnRr_Draw(Actor* thisx, PlayState* play) {
|
|||
Matrix_Scale((1.0f + this->bodySegs[RR_BASE].scaleMod.x) * this->bodySegs[RR_BASE].scale.x,
|
||||
(1.0f + this->bodySegs[RR_BASE].scaleMod.y) * this->bodySegs[RR_BASE].scale.y,
|
||||
(1.0f + this->bodySegs[RR_BASE].scaleMod.z) * this->bodySegs[RR_BASE].scale.z, MTXMODE_APPLY);
|
||||
gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(play->state.gfxCtx, "../z_en_rr.c", 1501),
|
||||
gSPMatrix(POLY_XLU_DISP++, MATRIX_NEW(play->state.gfxCtx, "../z_en_rr.c", 1501),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
Matrix_Pop();
|
||||
|
||||
|
@ -880,7 +880,7 @@ void EnRr_Draw(Actor* thisx, PlayState* play) {
|
|||
Matrix_Scale((1.0f + this->bodySegs[i].scaleMod.x) * this->bodySegs[i].scale.x,
|
||||
(1.0f + this->bodySegs[i].scaleMod.y) * this->bodySegs[i].scale.y,
|
||||
(1.0f + this->bodySegs[i].scaleMod.z) * this->bodySegs[i].scale.z, MTXMODE_APPLY);
|
||||
Matrix_ToMtx(segMtx, "../z_en_rr.c", 1527);
|
||||
MATRIX_TO_MTX(segMtx, "../z_en_rr.c", 1527);
|
||||
Matrix_Pop();
|
||||
segMtx++;
|
||||
Matrix_MultVec3f(&zeroVec, &this->effectPos[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue