Files
coffee_crisis_arcade_edition/source/external/jail_shader.h
Sergio Valor 7946ea54a6 unificats els shaders glsl en un sol fitxer
corregida la inicialització de opengl i shaders
2025-10-02 17:11:38 +02:00

10 lines
408 B
C++

#pragma once
#include <SDL3/SDL.h> // Para SDL_Texture, SDL_Window
#include <string> // Para basic_string, string
namespace shader {
bool init(SDL_Window *ventana, SDL_Texture *texturaBackBuffer, const std::string &vertexShader, const std::string &fragmentShader = "");
void render();
void setTextureSize(float width, float height); // Establece el tamaño de textura como uniform
} // namespace shader