1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-01-15 04:36:59 +00:00

move forward declarations of draw handlers to draw handlers array

This commit is contained in:
Dragorn421 2022-06-16 18:37:25 +02:00
parent 6ee11e021b
commit 752a83866c
No known key found for this signature in database
GPG key ID: 32B53D2D16FC4118

View file

@ -1,10 +1,6 @@
#include "global.h" #include "global.h"
#include "vt.h" #include "vt.h"
void Room_DrawAllMeshes(PlayState* play, Room* room, u32 flags);
void Room_DrawCullMeshes(PlayState* play, Room* room, u32 flags);
void Room_DrawPrerender(PlayState* play, Room* room, u32 flags);
Vec3f D_801270A0 = { 0.0f, 0.0f, 0.0f }; Vec3f D_801270A0 = { 0.0f, 0.0f, 0.0f };
// unused // unused
@ -22,6 +18,10 @@ Gfx D_801270B0[] = {
gsSPEndDisplayList(), gsSPEndDisplayList(),
}; };
void Room_DrawAllMeshes(PlayState* play, Room* room, u32 flags);
void Room_DrawPrerender(PlayState* play, Room* room, u32 flags);
void Room_DrawCullMeshes(PlayState* play, Room* room, u32 flags);
void (*sRoomDrawHandlers[MESH_HEADER_TYPE_MAX])(PlayState* play, Room* room, u32 flags) = { void (*sRoomDrawHandlers[MESH_HEADER_TYPE_MAX])(PlayState* play, Room* room, u32 flags) = {
Room_DrawAllMeshes, // MESH_HEADER_TYPE_ALL Room_DrawAllMeshes, // MESH_HEADER_TYPE_ALL
Room_DrawPrerender, // MESH_HEADER_TYPE_PRERENDER Room_DrawPrerender, // MESH_HEADER_TYPE_PRERENDER