tot mes ben estructuraet i ara amb gestió d'events, context i subsystems. arreglos en el main loop
This commit is contained in:
1 parent
1837844b03
commit
4e0b819b96
12 files changed
+94
-49
No files matched your search
@@ -3,14 +3,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
#include <string>
|
||||
|
||||
class Video {
|
||||
public:
|
||||
struct Config {
|
||||
bool fullscreen{false};
|
||||
float zoom{1.0F};
|
||||
float zoom{2.0F};
|
||||
float width{320.0F};
|
||||
float height{240.0F};
|
||||
std::string window_caption{};
|
||||
bool vsync{true};
|
||||
};
|
||||
|
||||
Video(Config config);
|
||||
|
||||
Reference in new issue
Block a user