mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
add a scissor to nametags to clip during credits
This commit is contained in:
parent
f2b4f4aaad
commit
c5bf411a2a
1 changed files with 10 additions and 0 deletions
|
|
@ -113,6 +113,13 @@ void nametags_render(void) {
|
|||
e->prevScale = scale;
|
||||
e->inited = true;
|
||||
}
|
||||
|
||||
// Scissor to clip during credits
|
||||
extern Vp *D_8032CE74;
|
||||
extern Vp *D_8032CE78;
|
||||
Vp *viewport = D_8032CE74 == NULL ? D_8032CE78 : D_8032CE74;
|
||||
if (viewport) { make_viewport_clip_rect(viewport); }
|
||||
|
||||
djui_hud_print_outlined_text_interpolated(name,
|
||||
e->prevPos[0] - measure, e->prevPos[1], e->prevScale,
|
||||
out[0] - measure, out[1], scale,
|
||||
|
|
@ -128,6 +135,9 @@ void nametags_render(void) {
|
|||
);
|
||||
}
|
||||
|
||||
// Reset scissor
|
||||
if (viewport) { gDPSetScissor(gDisplayListHead++, G_SC_NON_INTERLACE, 0, BORDER_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT - BORDER_HEIGHT); }
|
||||
|
||||
vec3f_copy(e->prevPos, out);
|
||||
e->prevScale = scale;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue