26 lines
558 B
C++
26 lines
558 B
C++
#include "system/director.hpp"
|
|
|
|
#include "rendering/video.hpp"
|
|
#include "system/defaults.hpp"
|
|
|
|
Director::Director() {
|
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
|
"Game start!");
|
|
|
|
video = std::make_shared<Video>(
|
|
Video::Config{
|
|
Defaults::Video::FULLSCREEN,
|
|
Defaults::Video::ZOOM,
|
|
Defaults::Video::WIDTH,
|
|
Defaults::Video::HEIGHT});
|
|
}
|
|
|
|
Director::~Director() {
|
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
|
"Bye!");
|
|
SDL_Quit();
|
|
}
|
|
|
|
auto Director::iterate() -> int {
|
|
return 0;
|
|
} |