mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2026-04-26 12:01:50 +00:00
* Start setting up user callbacks system * Implement RSP callbacks * move RSP callbacks (and related RSP stuff) to its own file * Move destroy_ui to gfx_callbacks_t and change recomp::start to require rsp_callbacks_t * error_handling.hpp * Remove UserCallbacks in favor of threads_callbacks_t * Add `ultramodern::set_callbacks` and some other cleanups * Move most RSP stuff to librecomp * Rename rsp_stuff.hpp to rsp.hpp * Add rsp.cpp to librecomp cmake file * review * Remove `recomp::message_box` * Fix missing rename
25 lines
548 B
C++
25 lines
548 B
C++
#ifndef __EVENTS_HPP__
|
|
#define __EVENTS_HPP__
|
|
|
|
namespace ultramodern {
|
|
namespace events {
|
|
struct callbacks_t {
|
|
using vi_callback_t = void();
|
|
using gfx_init_callback_t = void();
|
|
|
|
/**
|
|
* Called in each VI.
|
|
*/
|
|
vi_callback_t* vi_callback;
|
|
|
|
/**
|
|
* Called before entering the gfx main loop.
|
|
*/
|
|
gfx_init_callback_t* gfx_init_callback;
|
|
};
|
|
|
|
void set_callbacks(const callbacks_t& callbacks);
|
|
}
|
|
}
|
|
|
|
#endif
|