N64ModernRuntime/ultramodern/include/ultramodern/events.hpp
Anghelo Carvajal e3e7024342
Remove librecomp usage from ultramodern (#23)
* 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
2024-05-30 22:56:45 -04:00

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