25 #ifndef SFML_POSTFX_HPP
26 #define SFML_POSTFX_HPP
31 #include <SFML/Graphics/Drawable.hpp>
32 #include <SFML/Graphics/Image.hpp>
75 bool LoadFromFile(
const std::string& Filename);
85 bool LoadFromMemory(
const std::string& Effect);
94 void SetParameter(
const std::string& Name,
float X);
103 void SetParameter(
const std::string& Name,
float X,
float Y);
112 void SetParameter(
const std::string& Name,
float X,
float Y,
float Z);
121 void SetParameter(
const std::string& Name,
float X,
float Y,
float Z,
float W);
130 void SetTexture(
const std::string& Name,
Image* Texture);
148 static bool CanUsePostFX();
169 static std::string PreprocessEffect(std::istream& File);
175 void CreateProgram();
180 typedef std::map<std::string, const Image*> TextureTable;
185 unsigned int myShaderProgram;
186 TextureTable myTextures;
187 std::string myFragmentShader;
188 mutable Image myFrameBuffer;
194 #endif // SFML_POSTFX_HPP