Archived
1
Fork 0

Update example app to compile again

This commit is contained in:
redstrate 2021-04-20 12:17:49 -04:00
parent 99c033ea35
commit 4a46786db0
3 changed files with 6 additions and 4 deletions

View file

@ -87,11 +87,13 @@ bool engine::is_paused() const {
} }
void engine::quit() { void engine::quit() {
windows[0]->quit_requested = true; if(!windows.empty())
windows[0]->quit_requested = true;
} }
bool engine::is_quitting() const { bool engine::is_quitting() const {
return windows[0]->quit_requested; if(!windows.empty())
return windows[0]->quit_requested;
} }
void engine::prepare_quit() { void engine::prepare_quit() {

View file

@ -2,7 +2,7 @@
#include "app.hpp" #include "app.hpp"
class ExampleApp : public app { class ExampleApp : public prism::app {
public: public:
}; };

View file

@ -1,5 +1,5 @@
#include "example.hpp" #include "example.hpp"
void app_main(Engine* engine) { void app_main(prism::engine* engine) {
} }