fix: ja funcionen els shaders

This commit is contained in:
2025-10-16 12:46:02 +02:00
parent d5ff840445
commit 7fe2523221
5 changed files with 122 additions and 117 deletions

View File

@@ -24,7 +24,6 @@ class Screen {
// Constantes
static constexpr int WINDOWS_DECORATIONS = 35; // Decoraciones de la ventana
struct DisplayMonitor {
std::string name;
int width;
@@ -121,24 +120,21 @@ class Screen {
// Recrea la textura para los shaders
void createShadersTexture();
void initShaders(); // Inicializa los shaders
void loadShaders(); // Carga el contenido del archivo GLSL
// Muestra información por pantalla
void renderInfo();
// Obtiene información sobre la pantalla
void getDisplayInfo();
void initShaders(); // Inicializa los shaders
void loadShaders(); // Carga el contenido del archivo GLSL
void renderInfo(); // Muestra información por pantalla
void getDisplayInfo(); // Obtiene información sobre la pantalla
auto initSDLVideo() -> bool; // Arranca SDL VIDEO y crea la ventana
// Constructor
Screen(SDL_Window* window, SDL_Renderer* renderer);
Screen();
// Destructor
~Screen();
public:
// [SINGLETON] Crearemos el objeto con esta función estática
static void init(SDL_Window* window, SDL_Renderer* renderer);
static void init();
// [SINGLETON] Destruiremos el objeto con esta función estática
static void destroy();