![]() |
xyginext
0.2.0
Second generation of xygine game creation framework
|
Bloom post process effect. More...
#include <Bloom.hpp>
Public Member Functions | |
void | apply (const sf::RenderTexture &, sf::RenderTarget &) override |
![]() | |
PostProcess (const PostProcess &)=delete | |
PostProcess (PostProcess &&)=delete | |
PostProcess & | operator= (const PostProcess &)=delete |
PostProcess & | operator= (PostProcess &&)=delete |
virtual void | update (float) |
Updates the effect. Some effects may require shader parameters to be updated over time. This optionally overridable function passes in the current frame time and allows updating those parameters. This is called automatically when the effect is added to a Scene, but will need to be called manually when using the effect on its own. | |
void | resizeBuffer (sf::Int32 w, sf::Int32 h) |
Additional Inherited Members | |
![]() | |
using | Ptr = std::unique_ptr< PostProcess > |
![]() | |
virtual void | bufferResized () |
Called when the main output buffer resized. Implement this in post processes which contain intermediate buffers which need to be updated. | |
sf::Vector2i | getBufferSize () const |
Returns the current buffer size. | |
![]() | |
static void | applyShader (const sf::Shader &, sf::RenderTarget &) |
Bloom post process effect.
Creates a glowing 'bloom' effect on brighter objects within a scene
|
overridevirtual |
Implements xy::PostProcess.