A bit of a quick test for the GUI system, but not sure how to make this do more.
This commit is contained in:
parent
48df9248b2
commit
c7607533ce
6 changed files with 48 additions and 7 deletions
5
gui.cpp
5
gui.cpp
|
@ -252,8 +252,7 @@ void GUI::render_scene() {
|
|||
$renderer.display();
|
||||
}
|
||||
|
||||
int GUI::main() {
|
||||
// $sounds.play("ambient");
|
||||
int GUI::main(bool run_once) {
|
||||
create_renderer();
|
||||
run_systems();
|
||||
|
||||
|
@ -266,7 +265,7 @@ int GUI::main() {
|
|||
}
|
||||
|
||||
std::this_thread::sleep_for(10ms);
|
||||
} while($renderer.is_open());
|
||||
} while(!run_once && $renderer.is_open());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue