summaryrefslogtreecommitdiff
path: root/src/code/z_sample.c
diff options
context:
space:
mode:
authorRoman971 <32455037+Roman971@users.noreply.github.com>2021-05-03 01:15:16 +0200
committerGitHub <noreply@github.com>2021-05-02 19:15:16 -0400
commita53e084cd236c36da5fca25c07da18ac83a7dbab (patch)
treeccc0625dd7cc356d595d08caf06943af1c4efb4f /src/code/z_sample.c
parent4e9f40cb139ab66313fd24282fb9ef2060db5eed (diff)
Decompile the pause menu aka. ovl_kaleido_scope (+ minor changes) (#803)
* Decompile ovl_kaleido_scope + minor cleanups * Add a common header for ovl_kaleido_scope * Start cleaning up and documenting kaleido_scope (+ some interface docs) * Improve and fix some kaleido_scope non matchings * Match KaleidoSetup_Init * Extract icon_item_fra/ger_static files * Add more documentation and matches to kaleido_scope * Improve the z_kaleido_collect.c non matching * Rename z_kaleido_8081EFF0.c to z_kaleido_prompt.c * Update most kaleido variables to be static * Improve GS flag macros * Improve z_lmap_mark.c and extract z_lmap_mark_data.c with a script * Various minor fixes and improvements * Minor fixes and review changes * Review changes part 2 * Rename gSetTileCustom to gDPSetTileCustom * Review changes part 3
Diffstat (limited to 'src/code/z_sample.c')
-rw-r--r--src/code/z_sample.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/code/z_sample.c b/src/code/z_sample.c
index 82ff5b776..a287a9c08 100644
--- a/src/code/z_sample.c
+++ b/src/code/z_sample.c
@@ -27,7 +27,7 @@ void Sample_Draw(SampleContext* this) {
gSPMatrix(POLY_OPA_DISP++, mtx, G_MTX_LOAD);
}
- POLY_OPA_DISP = Gfx_SetFog2(POLY_OPA_DISP, 0xFF, 0xFF, 0xFF, 0, 0, 0);
+ POLY_OPA_DISP = Gfx_SetFog2(POLY_OPA_DISP, 255, 255, 255, 0, 0, 0);
func_80093D18(gfxCtx);
gDPSetCycleType(POLY_OPA_DISP++, G_CYC_1CYCLE);
@@ -54,24 +54,24 @@ void Sample_SetupView(SampleContext* this) {
View_Init(view, gfxCtx);
SET_FULLSCREEN_VIEWPORT(view);
- func_800AA460(view, 60, 10, 12800);
+ func_800AA460(view, 60.0f, 10.0f, 12800.0f);
{
- Vec3f v1;
- Vec3f v2;
- Vec3f v3;
-
- v1.x = 0;
- v1.y = 0;
- v2.x = 0;
- v2.y = 0;
- v2.z = 0;
- v3.x = 0;
- v3.z = 0;
- v1.z = 3000;
- v3.y = 1;
-
- func_800AA358(view, &v1, &v2, &v3);
+ Vec3f eye;
+ Vec3f lookAt;
+ Vec3f up;
+
+ eye.x = 0.0f;
+ eye.y = 0.0f;
+ eye.z = 3000.0f;
+ lookAt.x = 0.0f;
+ lookAt.y = 0.0f;
+ lookAt.z = 0.0f;
+ up.x = 0.0f;
+ up.z = 0.0f;
+ up.y = 1.0f;
+
+ func_800AA358(view, &eye, &lookAt, &up);
}
}