1 #include "core/window.hpp"
6 bool dummy_interface
= true;
10 uint64_t next_message_to_print
= 0;
13 void graphics_plugin::init() throw()
15 platform::pausing_allowed
= false;
18 void graphics_plugin::quit() throw()
22 void graphics_plugin::notify_message() throw()
24 //Read without lock becase we run in the same thread.
25 while(platform::msgbuf
.get_msg_first() + platform::msgbuf
.get_msg_count() > next_message_to_print
) {
26 if(platform::msgbuf
.get_msg_first() > next_message_to_print
)
27 next_message_to_print
= platform::msgbuf
.get_msg_first();
29 std::cout
<< platform::msgbuf
.get_message(next_message_to_print
++) << std::endl
;
33 void graphics_plugin::notify_status() throw()
37 void graphics_plugin::notify_screen() throw()
41 bool graphics_plugin::modal_message(const std::string
& text
, bool confirm
) throw()
43 std::cerr
<< "Modal message: " << text
<< std::endl
;
47 void graphics_plugin::fatal_error() throw()
49 std::cerr
<< "Exiting on fatal error." << std::endl
;
52 const char* graphics_plugin::name
= "Dummy graphics plugin";