The shader effects now work correctly on the scene actors, but the application of shaders should be on the animation class.

This commit is contained in:
Zed A. Shaw 2026-01-02 23:23:05 -05:00
parent 22db12f5e4
commit 05fc9062a7
11 changed files with 33 additions and 16 deletions

View file

@ -1,4 +1,5 @@
#pragma once
#include <memory>
#include <unordered_map>
#include "components.hpp"
@ -51,8 +52,8 @@ namespace scene {
void play_animations();
void apply_effect(const std::string& actor, const std::string& shader);
Element& actor_config(const std::string& actor);
void zoom(const std::string& actor, float scale=0.9f);
void zoom(float mid_x, float mid_y, float scale);
void zoom(const std::string& actor, const std::string& style, float scale=0.9f);
void zoom(float mid_x, float mid_y, const std::string& style, float scale);
void reset(sf::RenderTexture& view);
std::pair<Element&, Element&> left_right(const std::string &actor, const std::string &target);
};