gedeng/include/Gedeng/Application.h
Karl a0e1bf8592 Add game loop to Application
Implements fixed and variable time steps.

Might be a moved to a separate class later.
2021-04-30 10:23:59 +02:00

21 lines
385 B
C++

#pragma once
namespace Gedeng {
class Application {
public:
Application() = default;
// Virtual since this class will be inherited by user-created applications
virtual ~Application() = default;
void run();
private:
const unsigned long MS_PER_UPDATE = 20;
};
// To be defined in client applications
Application *create_application();
} // namespace Gedeng