2021-03-20 16:55:43 +01:00
|
|
|
#include "Gedeng/Logger.h"
|
2021-03-20 16:07:07 +01:00
|
|
|
#define GEDENG_MAIN
|
2021-03-20 15:50:02 +01:00
|
|
|
#include <Gedeng.h>
|
|
|
|
|
|
|
|
class TestApp : public Gedeng::Application {
|
|
|
|
public:
|
2021-04-30 23:11:01 +02:00
|
|
|
TestApp(unsigned long ms_per_update, unsigned int window_size_x, unsigned int window_size_y,
|
|
|
|
Gedeng::String window_name)
|
|
|
|
: Application(ms_per_update, window_size_x, window_size_y, window_name) {
|
|
|
|
}
|
2021-03-20 15:50:02 +01:00
|
|
|
|
|
|
|
~TestApp() = default;
|
2021-04-30 23:11:01 +02:00
|
|
|
|
|
|
|
void fixed_update(double delta) override {
|
|
|
|
GG_CLIENT_INFO("Fixed update");
|
|
|
|
}
|
|
|
|
|
|
|
|
void dynamic_update(double delta) override {
|
|
|
|
GG_CLIENT_INFO("Dynamic update");
|
|
|
|
}
|
2021-03-20 15:50:02 +01:00
|
|
|
};
|
|
|
|
|
2021-03-20 16:07:07 +01:00
|
|
|
Gedeng::Application *Gedeng::create_application() {
|
2021-03-20 16:55:43 +01:00
|
|
|
GG_CLIENT_INFO("Creating Application");
|
2021-04-30 23:11:01 +02:00
|
|
|
return new TestApp(20, 900, 600, String("Test App"));
|
2021-03-20 16:07:07 +01:00
|
|
|
}
|