primera faeneta
This commit is contained in:
1 parent
2cd3f807ec
commit
6961986ad2
9 files changed
+194
-1
No files matched your search
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
namespace Defaults::Video {
|
||||
constexpr int ZOOM = 3;
|
||||
constexpr bool FULLSCREEN = false;
|
||||
constexpr float WIDTH = 320.0F;
|
||||
constexpr float HEIGHT = 240.0F;
|
||||
} // namespace Defaults::Video
|
||||
@@ -0,0 +1,26 @@
|
||||
#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;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "rendering/video.hpp"
|
||||
|
||||
class Director {
|
||||
public:
|
||||
Director();
|
||||
~Director();
|
||||
|
||||
auto iterate() -> int;
|
||||
|
||||
private:
|
||||
std::shared_ptr<Video> video;
|
||||
};
|
||||
Reference in new issue
Block a user