1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 03:39:59 +00:00

R_MESH2_ -> R_ROOM_CULL_

This commit is contained in:
Dragorn421 2022-06-16 19:06:59 +02:00
parent 700de56fdc
commit 4c19da0748
No known key found for this signature in database
GPG key ID: 32B53D2D16FC4118
2 changed files with 9 additions and 9 deletions

View file

@ -103,10 +103,10 @@
#define R_MAGIC_FILL_X XREG(51)
#define R_ENV_LIGHT1_DIR(i) cREG(3 + i)
#define R_ENV_LIGHT2_DIR(i) cREG(6 + i)
#define R_MESH2_DEBUG_MODE iREG(86)
#define R_MESH2_NUM_ALL_ENTRIES iREG(87)
#define R_MESH2_NUM_DRAWN_ENTRIES iREG(88)
#define R_MESH2_DEBUG_DRAW_TARGET iREG(89)
#define R_ROOM_CULL_DEBUG_MODE iREG(86)
#define R_ROOM_CULL_NUM_ENTRIES iREG(87)
#define R_ROOM_CULL_USED_ENTRIES iREG(88)
#define R_ROOM_CULL_DEBUG_TARGET iREG(89)
#define R_B_LABEL_DD WREG(0)
#define R_OW_MINIMAP_X WREG(29)
#define R_OW_MINIMAP_Y WREG(30)

View file

@ -180,7 +180,7 @@ void Room_DrawCullMeshes(PlayState* play, Room* room, u32 flags) {
}
// if this is real then I might not be
R_MESH2_NUM_ALL_ENTRIES = meshHeaderCull->numEntries & 0xFFFF & 0xFFFF & 0xFFFF;
R_ROOM_CULL_NUM_ENTRIES = meshHeaderCull->numEntries & 0xFFFF & 0xFFFF & 0xFFFF;
// Draw entries, from nearest to furthest
for (i = 1; head != NULL; head = head->next, i++) {
@ -188,7 +188,7 @@ void Room_DrawCullMeshes(PlayState* play, Room* room, u32 flags) {
meshHeaderCullEntry = head->entry;
if (R_MESH2_DEBUG_MODE != 0) {
if (R_ROOM_CULL_DEBUG_MODE != 0) {
// Debug mode drawing
// This loop does nothing
@ -199,8 +199,8 @@ void Room_DrawCullMeshes(PlayState* play, Room* room, u32 flags) {
}
}
if (((R_MESH2_DEBUG_MODE == 1) && (R_MESH2_DEBUG_DRAW_TARGET >= i)) ||
((R_MESH2_DEBUG_MODE == 2) && (R_MESH2_DEBUG_DRAW_TARGET == i))) {
if (((R_ROOM_CULL_DEBUG_MODE == 1) && (R_ROOM_CULL_DEBUG_TARGET >= i)) ||
((R_ROOM_CULL_DEBUG_MODE == 2) && (R_ROOM_CULL_DEBUG_TARGET == i))) {
if (flags & ROOM_DRAW_OPA) {
displayList = meshHeaderCullEntry->opa;
if (displayList != NULL) {
@ -232,7 +232,7 @@ void Room_DrawCullMeshes(PlayState* play, Room* room, u32 flags) {
}
}
R_MESH2_NUM_DRAWN_ENTRIES = i - 1;
R_ROOM_CULL_USED_ENTRIES = i - 1;
CLOSE_DISPS(play->state.gfxCtx, "../z_room.c", 430);
}