mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-05-01 14:41:41 +00:00
Set render hooks
This commit is contained in:
parent
9d64742b68
commit
0aa60be265
4 changed files with 6 additions and 3 deletions
|
|
@ -120,6 +120,8 @@ namespace recompui {
|
||||||
void activate_mouse();
|
void activate_mouse();
|
||||||
|
|
||||||
void message_box(const char* msg);
|
void message_box(const char* msg);
|
||||||
|
|
||||||
|
void set_render_hooks();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -174,6 +174,7 @@ ultramodern::renderer::SetupResult map_setup_result(RT64::Application::SetupResu
|
||||||
|
|
||||||
zelda64::renderer::RT64Context::RT64Context(uint8_t* rdram, ultramodern::renderer::WindowHandle window_handle, bool debug) {
|
zelda64::renderer::RT64Context::RT64Context(uint8_t* rdram, ultramodern::renderer::WindowHandle window_handle, bool debug) {
|
||||||
static unsigned char dummy_rom_header[0x40];
|
static unsigned char dummy_rom_header[0x40];
|
||||||
|
recompui::set_render_hooks();
|
||||||
|
|
||||||
// Set up the RT64 application core fields.
|
// Set up the RT64 application core fields.
|
||||||
RT64::Application::Core appCore{};
|
RT64::Application::Core appCore{};
|
||||||
|
|
|
||||||
|
|
@ -1457,7 +1457,7 @@ void deinit_hook() {
|
||||||
ui_context.reset();
|
ui_context.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_rt64_hooks() {
|
void recompui::set_render_hooks() {
|
||||||
RT64::SetRenderHooks(init_hook, draw_hook, deinit_hook);
|
RT64::SetRenderHooks(init_hook, draw_hook, deinit_hook);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue