Arreglar degradado de fondo restaurando campo alpha en SDL_Vertex

- Identificado que SDL_RenderGeometry requiere campo alpha en SDL_Vertex
- Restaurada implementación original con alpha=1.0f en todos los vértices
- Eliminado código debug temporal y workaround con SDL_RenderFillRect
- El degradado de fondo ahora funciona correctamente como en la versión original

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-28 07:58:29 +02:00
parent 6a84234265
commit dab71d41b6
6 changed files with 225 additions and 96 deletions
+11
View File
@@ -2,6 +2,7 @@
#include <SDL3/SDL_video.h> // for SDL_Window
#include <SDL3/SDL_events.h> // for SDL_Event
#include <SDL3/SDL_render.h> // for SDL_Renderer
#include <memory> // for unique_ptr
#include <string> // for string
@@ -22,6 +23,13 @@ public:
SDL_Window* getWindow() const { return window_; }
RendererInterface* getRenderer() const { return renderer_.get(); }
// Getter específico para compatibilidad con dbgtxt.h
SDL_Renderer* getSDLRenderer() const;
// Sistema de render-to-texture para postprocesado
bool setRenderTarget(); // Activa renderizado a textura lógica
void presentFrame(); // Presenta textura final con zoom/efectos
// Control de ventana
void setTitle(const char* title);
bool setFullscreen(bool enable);
@@ -49,6 +57,9 @@ private:
SDL_Window* window_ = nullptr;
std::unique_ptr<RendererInterface> renderer_;
// Sistema de render-to-texture
SDL_Texture* render_texture_ = nullptr; // Textura de resolución lógica
// Estado de la ventana
int logical_width_ = 0;
int logical_height_ = 0;