Update example app to compile again
This commit is contained in:
parent
99c033ea35
commit
4a46786db0
3 changed files with 6 additions and 4 deletions
|
@ -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() {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include "app.hpp"
|
#include "app.hpp"
|
||||||
|
|
||||||
class ExampleApp : public app {
|
class ExampleApp : public prism::app {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
};
|
};
|
|
@ -1,5 +1,5 @@
|
||||||
#include "example.hpp"
|
#include "example.hpp"
|
||||||
|
|
||||||
void app_main(Engine* engine) {
|
void app_main(prism::engine* engine) {
|
||||||
|
|
||||||
}
|
}
|
Reference in a new issue