mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-14 03:44:34 +00:00
Names for some view things (#1191)
* Names for some view things * Review: ORTHOGRAPHIC → ORTHO * Review: dirty → dirtyFlags * Review: Doc comment style * Review: Define constants in terms of each other * Review: Rename the ApplyToOverlay functions * Update include/z64.h Co-authored-by: fig02 <fig02srl@gmail.com> * Review: Better View_LookAtInternal doc * arg1 → mask * View_LookAtInternal → View_LookAtUnsafe * Review: View_SanityCheckEyePosition → View_ErrorCheckEyePosition * sViewNotInitialized → sLogOnNextViewInit * Remove VIEW_FORCE_ALL * near/far → zNear/zFar Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * lookAt → at Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * near/far → zNear/zFar * View_ApplyPerspective/Ortho: Remove from header instead of commenting * lookAt → at * Add fwd decls * Fix external view->at accesses * Missed these somehow * lookAt → at * Omit "Apply" in comments * dirtyFlags → flags * View_ApplyScissor → View_ApplyShrinkWindow * Update src/code/z_view.c Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> Co-authored-by: fig02 <fig02srl@gmail.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
This commit is contained in:
parent
b9b40805f7
commit
9984c267d9
24 changed files with 210 additions and 170 deletions
|
@ -2975,7 +2975,7 @@ void func_8008A8B8(GlobalContext* globalCtx, s32 topY, s32 bottomY, s32 leftX, s
|
|||
up.x = up.z = 0.0f;
|
||||
up.y = 1.0f;
|
||||
|
||||
func_800AA358(&interfaceCtx->view, &eye, &lookAt, &up);
|
||||
View_LookAt(&interfaceCtx->view, &eye, &lookAt, &up);
|
||||
|
||||
interfaceCtx->viewport.topY = topY;
|
||||
interfaceCtx->viewport.bottomY = bottomY;
|
||||
|
@ -2983,13 +2983,13 @@ void func_8008A8B8(GlobalContext* globalCtx, s32 topY, s32 bottomY, s32 leftX, s
|
|||
interfaceCtx->viewport.rightX = rightX;
|
||||
View_SetViewport(&interfaceCtx->view, &interfaceCtx->viewport);
|
||||
|
||||
func_800AA460(&interfaceCtx->view, 60.0f, 10.0f, 60.0f);
|
||||
func_800AB560(&interfaceCtx->view);
|
||||
View_SetPerspective(&interfaceCtx->view, 60.0f, 10.0f, 60.0f);
|
||||
View_ApplyPerspectiveToOverlay(&interfaceCtx->view);
|
||||
}
|
||||
|
||||
void func_8008A994(InterfaceContext* interfaceCtx) {
|
||||
SET_FULLSCREEN_VIEWPORT(&interfaceCtx->view);
|
||||
func_800AB2C4(&interfaceCtx->view);
|
||||
View_ApplyOrthoToOverlay(&interfaceCtx->view);
|
||||
}
|
||||
|
||||
void Interface_Draw(GlobalContext* globalCtx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue