primera faeneta

This commit is contained in:
JailDesigner committed 2026-11-03 14:15:50 +01:00
1 parent 2cd3f807ec
commit 6961986ad2
9 files changed
+194 -1

No files matched your search

+8
View File
@@ -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
+26
View File
@@ -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;
}
+16
View File
@@ -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;
};