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,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
class Video {
|
||||
public:
|
||||
struct Config {
|
||||
bool fullscreen{false};
|
||||
float zoom{1.0F};
|
||||
float width{320.0F};
|
||||
float height{240.0F};
|
||||
};
|
||||
|
||||
Video(Config config);
|
||||
~Video();
|
||||
|
||||
private:
|
||||
Config config_;
|
||||
|
||||
SDL_Window* window_{nullptr};
|
||||
SDL_Renderer* renderer_{nullptr};
|
||||
SDL_Texture* game_texture_{nullptr};
|
||||
|
||||
auto initSDL() -> int;
|
||||
void cleanup();
|
||||
};
|
||||
Reference in new issue
Block a user