mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-19 21:41:59 +00:00
Cleanup gSPMatrix, rename Matrix_New
-> Matrix_Finalize
, add MATRIX_FINALIZE_AND_LOAD
(#1983)
* clean up gSPMatrix usage * add weird hybrid macro gSPMATRIX_SET_NEW * Matrix_NewMtx, MATRIX_NEW -> Matrix_Finalize, MATRIX_FINALIZE * gSPMATRIX_SET_NEW -> MATRIX_FINALIZE_AND_LOAD * format
This commit is contained in:
parent
2e79b83bb8
commit
5441559b30
268 changed files with 702 additions and 1272 deletions
|
@ -1205,8 +1205,7 @@ void FileSelect_ConfigModeDraw(GameState* thisx) {
|
|||
Matrix_RotateX(this->windowRot / 100.0f, MTXMODE_APPLY);
|
||||
}
|
||||
|
||||
gSPMatrix(POLY_OPA_DISP++, MATRIX_NEW(this->state.gfxCtx, "../z_file_choose.c", 2282),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
MATRIX_FINALIZE_AND_LOAD(POLY_OPA_DISP++, this->state.gfxCtx, "../z_file_choose.c", 2282);
|
||||
|
||||
gSPVertex(POLY_OPA_DISP++, &this->windowVtx[0], 32, 0);
|
||||
gSPDisplayList(POLY_OPA_DISP++, gFileSelWindow1DL);
|
||||
|
@ -1233,8 +1232,7 @@ void FileSelect_ConfigModeDraw(GameState* thisx) {
|
|||
Matrix_Translate(0.0f, 0.0f, -93.6f, MTXMODE_NEW);
|
||||
Matrix_Scale(0.78f, 0.78f, 0.78f, MTXMODE_APPLY);
|
||||
Matrix_RotateX((this->windowRot - 314.0f) / 100.0f, MTXMODE_APPLY);
|
||||
gSPMatrix(POLY_OPA_DISP++, MATRIX_NEW(this->state.gfxCtx, "../z_file_choose.c", 2316),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
MATRIX_FINALIZE_AND_LOAD(POLY_OPA_DISP++, this->state.gfxCtx, "../z_file_choose.c", 2316);
|
||||
|
||||
gSPVertex(POLY_OPA_DISP++, &this->windowVtx[0], 32, 0);
|
||||
gSPDisplayList(POLY_OPA_DISP++, gFileSelWindow1DL);
|
||||
|
@ -1262,8 +1260,7 @@ void FileSelect_ConfigModeDraw(GameState* thisx) {
|
|||
Matrix_Scale(0.78f, 0.78f, 0.78f, MTXMODE_APPLY);
|
||||
Matrix_RotateX((this->windowRot - 314.0f) / 100.0f, MTXMODE_APPLY);
|
||||
|
||||
gSPMatrix(POLY_OPA_DISP++, MATRIX_NEW(this->state.gfxCtx, "../z_file_choose.c", 2337),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
MATRIX_FINALIZE_AND_LOAD(POLY_OPA_DISP++, this->state.gfxCtx, "../z_file_choose.c", 2337);
|
||||
|
||||
gSPVertex(POLY_OPA_DISP++, &this->windowVtx[0], 32, 0);
|
||||
gSPDisplayList(POLY_OPA_DISP++, gFileSelWindow1DL);
|
||||
|
@ -1624,8 +1621,7 @@ void FileSelect_SelectModeDraw(GameState* thisx) {
|
|||
Matrix_Translate(0.0f, 0.0f, -93.6f, MTXMODE_NEW);
|
||||
Matrix_Scale(0.78f, 0.78f, 0.78f, MTXMODE_APPLY);
|
||||
Matrix_RotateX(this->windowRot / 100.0f, MTXMODE_APPLY);
|
||||
gSPMatrix(POLY_OPA_DISP++, MATRIX_NEW(this->state.gfxCtx, "../z_file_choose.c", 2810),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
MATRIX_FINALIZE_AND_LOAD(POLY_OPA_DISP++, this->state.gfxCtx, "../z_file_choose.c", 2810);
|
||||
|
||||
gSPVertex(POLY_OPA_DISP++, &this->windowVtx[0], 32, 0);
|
||||
gSPDisplayList(POLY_OPA_DISP++, gFileSelWindow1DL);
|
||||
|
|
|
@ -1665,16 +1665,14 @@ void FileSelect_DrawOptionsImpl(GameState* thisx) {
|
|||
|
||||
Matrix_Push();
|
||||
Matrix_Translate(0.0f, 0.1f, 0.0f, MTXMODE_APPLY);
|
||||
gSPMatrix(POLY_OPA_DISP++, MATRIX_NEW(this->state.gfxCtx, "../z_file_nameset_PAL.c", 1009),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
MATRIX_FINALIZE_AND_LOAD(POLY_OPA_DISP++, this->state.gfxCtx, "../z_file_nameset_PAL.c", 1009);
|
||||
gSPVertex(POLY_OPA_DISP++, gOptionsDividerTopVtx, 4, 0);
|
||||
gSP1Quadrangle(POLY_OPA_DISP++, 0, 2, 3, 1, 0);
|
||||
Matrix_Pop();
|
||||
|
||||
Matrix_Push();
|
||||
Matrix_Translate(0.0f, 0.2f, 0.0f, MTXMODE_APPLY);
|
||||
gSPMatrix(POLY_OPA_DISP++, MATRIX_NEW(this->state.gfxCtx, "../z_file_nameset_PAL.c", 1021),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
MATRIX_FINALIZE_AND_LOAD(POLY_OPA_DISP++, this->state.gfxCtx, "../z_file_nameset_PAL.c", 1021);
|
||||
|
||||
gSPVertex(POLY_OPA_DISP++, gOptionsDividerMiddleVtx, 4, 0);
|
||||
gSP1Quadrangle(POLY_OPA_DISP++, 0, 2, 3, 1, 0);
|
||||
|
@ -1682,8 +1680,7 @@ void FileSelect_DrawOptionsImpl(GameState* thisx) {
|
|||
|
||||
Matrix_Push();
|
||||
Matrix_Translate(0.0f, 0.4f, 0.0f, MTXMODE_APPLY);
|
||||
gSPMatrix(POLY_OPA_DISP++, MATRIX_NEW(this->state.gfxCtx, "../z_file_nameset_PAL.c", 1033),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
MATRIX_FINALIZE_AND_LOAD(POLY_OPA_DISP++, this->state.gfxCtx, "../z_file_nameset_PAL.c", 1033);
|
||||
gSPVertex(POLY_OPA_DISP++, gOptionsDividerBottomVtx, 4, 0);
|
||||
gSP1Quadrangle(POLY_OPA_DISP++, 0, 2, 3, 1, 0);
|
||||
Matrix_Pop();
|
||||
|
|
|
@ -114,7 +114,7 @@ void ConsoleLogo_Draw(ConsoleLogoState* this) {
|
|||
Matrix_Scale(1.0, 1.0, 1.0, MTXMODE_APPLY);
|
||||
Matrix_RotateZYX(0, sTitleRotY, 0, MTXMODE_APPLY);
|
||||
|
||||
gSPMatrix(POLY_OPA_DISP++, MATRIX_NEW(this->state.gfxCtx, "../z_title.c", 424), G_MTX_LOAD);
|
||||
MATRIX_FINALIZE_AND_LOAD(POLY_OPA_DISP++, this->state.gfxCtx, "../z_title.c", 424);
|
||||
gSPDisplayList(POLY_OPA_DISP++, gNintendo64LogoDL);
|
||||
Gfx_SetupDL_39Opa(this->state.gfxCtx);
|
||||
gDPPipeSync(POLY_OPA_DISP++);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue