2021-03-20 14:51:45 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Gedeng {
|
|
|
|
|
|
|
|
class Application {
|
2021-03-20 15:50:02 +01:00
|
|
|
public:
|
2021-03-20 14:51:45 +01:00
|
|
|
Application() = default;
|
|
|
|
|
|
|
|
// Virtual since this class will be inherited by user-created applications
|
|
|
|
virtual ~Application() = default;
|
|
|
|
|
|
|
|
void run();
|
2021-04-30 10:23:59 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
const unsigned long MS_PER_UPDATE = 20;
|
2021-03-20 14:51:45 +01:00
|
|
|
};
|
|
|
|
|
2021-03-20 16:07:07 +01:00
|
|
|
// To be defined in client applications
|
|
|
|
Application *create_application();
|
|
|
|
|
2021-03-20 14:51:45 +01:00
|
|
|
} // namespace Gedeng
|