diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-11 15:24:10 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-11 15:24:10 -0400 |
commit | c2a969692e1f9cb4b822d934fedc508a997ab3d3 (patch) | |
tree | 2fd2e79361666ecdf5ea4e0a01e31a3185ecb607 /src | |
parent | 6acb488e0b590cf04397f6d4d99c5375a157b3e4 (diff) |
TMainTask: Add, and match `render_clipout_and_fade()`
Diffstat (limited to 'src')
-rw-r--r-- | src/pso/TMainTask.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/pso/TMainTask.cpp b/src/pso/TMainTask.cpp index 7e543bf..337e8cd 100644 --- a/src/pso/TMainTask.cpp +++ b/src/pso/TMainTask.cpp @@ -160,6 +160,29 @@ void TMainTask::render() { set_task_flags(0x100); } +void TMainTask::render_clipout_and_fade() { + u32 some_id; + set_task_flags(2); + + set_depth_buffer_settings_2(); + set_depth_buffer_settings_id(1); + save_depth_buffer_settings(); + some_id = some_id_805c6f74; + func_803db618(1); + + tl_clipout->allow_rendering(); + tl_clipout->render_nodes(); + tl_fade->allow_rendering(); + tl_fade->render_nodes(); + tl_fadeafter->allow_rendering(); + tl_fadeafter->render_nodes(); + + func_803db618(some_id); + restore_depth_buffer_settings(); + + clear_task_flags(2); +}; + void TMainTask::run_task() { SET_OR_CLEAR_CHILD_FLAGS(update_flags, old_update_flags, 3); some_main_task_flag = 0; |