mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-11 17:30:25 +00:00
Add enum for setup dls and name z_rcp.c
functions (#1196)
* Introduce `SetupDL` enum * wip * wip * Remove comments on each setupdl index * Name setup dl functions by setupdl index * `Gfx_SetupDl` -> `Gfx_SetupDL` * Run formatter * globalctx -> play * fix regressions * `Gfx_SetupDL` -> `Gfx_SetupDL_` (add separating underscore) * `CallSetupDL` -> `SetupDL`
This commit is contained in:
parent
4775fd4a7e
commit
1a41694d58
376 changed files with 1047 additions and 971 deletions
|
@ -1132,7 +1132,7 @@ void FileChoose_ConfigModeDraw(GameState* thisx) {
|
|||
ZREG(11) += ZREG(10);
|
||||
Environment_UpdateSkybox(SKYBOX_NORMAL_SKY, &this->envCtx, &this->skyboxCtx);
|
||||
gDPPipeSync(POLY_OPA_DISP++);
|
||||
func_800949A8(this->state.gfxCtx);
|
||||
Gfx_SetupDL_42Opa(this->state.gfxCtx);
|
||||
FileChoose_SetView(this, 0.0f, 0.0f, 64.0f);
|
||||
FileChoose_SetWindowVtx(&this->state);
|
||||
FileChoose_SetWindowContentVtx(&this->state);
|
||||
|
@ -1545,7 +1545,7 @@ void FileChoose_SelectModeDraw(GameState* thisx) {
|
|||
ZREG(11) += ZREG(10);
|
||||
Environment_UpdateSkybox(SKYBOX_NORMAL_SKY, &this->envCtx, &this->skyboxCtx);
|
||||
gDPPipeSync(POLY_OPA_DISP++);
|
||||
func_800949A8(this->state.gfxCtx);
|
||||
Gfx_SetupDL_42Opa(this->state.gfxCtx);
|
||||
FileChoose_SetView(this, 0.0f, 0.0f, 64.0f);
|
||||
FileChoose_SetWindowVtx(&this->state);
|
||||
FileChoose_SetWindowContentVtx(&this->state);
|
||||
|
@ -1675,7 +1675,7 @@ void FileChoose_Main(GameState* thisx) {
|
|||
|
||||
// do not draw controls text in the options menu
|
||||
if ((this->configMode <= CM_NAME_ENTRY_TO_MAIN) || (this->configMode >= CM_UNUSED_DELAY)) {
|
||||
func_800944C4(this->state.gfxCtx);
|
||||
Gfx_SetupDL_39Opa(this->state.gfxCtx);
|
||||
|
||||
gDPSetCombineLERP(POLY_OPA_DISP++, PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, TEXEL0, 0, PRIMITIVE, 0,
|
||||
PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, TEXEL0, 0, PRIMITIVE, 0);
|
||||
|
|
|
@ -238,7 +238,7 @@ void FileChoose_DrawKeyboard(GameState* thisx) {
|
|||
|
||||
OPEN_DISPS(this->state.gfxCtx, "../z_file_nameset_PAL.c", 324);
|
||||
|
||||
func_800949A8(this->state.gfxCtx);
|
||||
Gfx_SetupDL_42Opa(this->state.gfxCtx);
|
||||
gDPSetCycleType(POLY_OPA_DISP++, G_CYC_2CYCLE);
|
||||
gDPSetRenderMode(POLY_OPA_DISP++, G_RM_PASS, G_RM_XLU_SURF2);
|
||||
gDPSetCombineLERP(POLY_OPA_DISP++, 0, 0, 0, PRIMITIVE, TEXEL1, TEXEL0, PRIM_LOD_FRAC, TEXEL0, 0, 0, 0, COMBINED, 0,
|
||||
|
@ -340,7 +340,7 @@ void FileChoose_DrawNameEntry(GameState* thisx) {
|
|||
|
||||
FileChoose_DrawKeyboard(&this->state);
|
||||
gDPPipeSync(POLY_OPA_DISP++);
|
||||
func_800949A8(this->state.gfxCtx);
|
||||
Gfx_SetupDL_42Opa(this->state.gfxCtx);
|
||||
|
||||
gDPSetCombineLERP(POLY_OPA_DISP++, 0, 0, 0, PRIMITIVE, TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, PRIMITIVE, TEXEL0, 0,
|
||||
PRIMITIVE, 0);
|
||||
|
|
|
@ -653,7 +653,7 @@ void Select_DrawMenu(SelectContext* this) {
|
|||
func_80095248(gfxCtx, 0, 0, 0);
|
||||
SET_FULLSCREEN_VIEWPORT(&this->view);
|
||||
View_Apply(&this->view, VIEW_ALL);
|
||||
func_80094140(gfxCtx);
|
||||
Gfx_SetupDL_28Opa(gfxCtx);
|
||||
|
||||
printer = alloca(sizeof(GfxPrint));
|
||||
GfxPrint_Init(printer);
|
||||
|
@ -677,7 +677,7 @@ void Select_DrawLoadingScreen(SelectContext* this) {
|
|||
func_80095248(gfxCtx, 0, 0, 0);
|
||||
SET_FULLSCREEN_VIEWPORT(&this->view);
|
||||
View_Apply(&this->view, VIEW_ALL);
|
||||
func_80094140(gfxCtx);
|
||||
Gfx_SetupDL_28Opa(gfxCtx);
|
||||
|
||||
printer = alloca(sizeof(GfxPrint));
|
||||
GfxPrint_Init(printer);
|
||||
|
|
|
@ -13,7 +13,7 @@ void Title_PrintBuildInfo(Gfx** gfxp) {
|
|||
GfxPrint* printer;
|
||||
|
||||
g = *gfxp;
|
||||
g = func_8009411C(g);
|
||||
g = Gfx_SetupDL_28(g);
|
||||
printer = alloca(sizeof(GfxPrint));
|
||||
GfxPrint_Init(printer);
|
||||
GfxPrint_Open(printer, g);
|
||||
|
@ -81,14 +81,14 @@ void Title_Draw(TitleContext* this) {
|
|||
func_8002EABC(&v1, &v2, &v3, this->state.gfxCtx);
|
||||
gSPSetLights1(POLY_OPA_DISP++, sTitleLights);
|
||||
Title_SetupView(this, 0, 150.0, 300.0);
|
||||
func_80093D18(this->state.gfxCtx);
|
||||
Gfx_SetupDL_25Opa(this->state.gfxCtx);
|
||||
Matrix_Translate(-53.0, -5.0, 0, MTXMODE_NEW);
|
||||
Matrix_Scale(1.0, 1.0, 1.0, MTXMODE_APPLY);
|
||||
Matrix_RotateZYX(0, sTitleRotY, 0, MTXMODE_APPLY);
|
||||
|
||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(this->state.gfxCtx, "../z_title.c", 424), G_MTX_LOAD);
|
||||
gSPDisplayList(POLY_OPA_DISP++, gNintendo64LogoDL);
|
||||
func_800944C4(this->state.gfxCtx);
|
||||
Gfx_SetupDL_39Opa(this->state.gfxCtx);
|
||||
gDPPipeSync(POLY_OPA_DISP++);
|
||||
gDPSetCycleType(POLY_OPA_DISP++, G_CYC_2CYCLE);
|
||||
gDPSetRenderMode(POLY_OPA_DISP++, G_RM_XLU_SURF2, G_RM_OPA_CI | CVG_DST_WRAP);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue