Acabat de repasar jail_shader.cpp

This commit is contained in:
2025-03-16 09:39:24 +01:00
parent 96680dae0f
commit e7359a1467
3 changed files with 94 additions and 88 deletions

View File

@@ -2,6 +2,7 @@
#include <SDL2/SDL_render.h> // para SDL_Texture
#include <SDL2/SDL_video.h> // para SDL_Window
#include <string>
// TIPS:
// =======================================================================
@@ -38,8 +39,7 @@
namespace shader
{
const bool init(SDL_Window *win, SDL_Texture *backBuffer,
const char *vertexShader, const char *fragmentShader = nullptr);
//const bool init(SDL_Window *ventana, SDL_Texture *texturaBackBuffer, const char *vertexShader, const char *fragmentShader = nullptr);
bool init(SDL_Window *ventana, SDL_Texture *texturaBackBuffer, const std::string &vertexShader, const std::string &fragmentShader = "");
void render();
}