![]() |
xyginext
0.2.0
Second generation of xygine game creation framework
|
Creates a Chromatic Abberation effect. More...
#include <ChromeAb.hpp>
Public Member Functions | |
PostChromeAb (bool distort=false) | |
Constructor. More... | |
void | apply (const sf::RenderTexture &, sf::RenderTarget &) override |
void | update (float) override |
![]() | |
PostProcess (const PostProcess &)=delete | |
PostProcess (PostProcess &&)=delete | |
PostProcess & | operator= (const PostProcess &)=delete |
PostProcess & | operator= (PostProcess &&)=delete |
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 &) |
Creates a Chromatic Abberation effect.
Chromatic abberation is the apparent split in colours often noticed near the edges of powerful lenses. The effect also adds noise and scanlines to try and recreate the overall effect of and old CRT type monitor
xy::PostChromeAb::PostChromeAb | ( | bool | distort = false | ) |
Constructor.
distort | If set to true the post effect will apply a CRT style bowed distortion around the edge of the screen |
|
overridevirtual |
Implements xy::PostProcess.
|
overridevirtual |
Reimplemented from xy::PostProcess.