Base class for Post Processing Effects.
More...
#include <VPostEffect.h>
|
virtual void | Apply (const sf::Texture &input, sf::RenderTarget &output)=0 |
|
virtual void | Update (float dt) |
|
|
static void | applyShader (const sf::Shader &shader, sf::RenderTarget &output) |
|
static void | passThrough (const sf::Texture &input, sf::RenderTarget &output) |
|
Base class for Post Processing Effects.
◆ Apply()
virtual void VPostEffectBase::Apply |
( |
const sf::Texture & |
input, |
|
|
sf::RenderTarget & |
output |
|
) |
| |
|
pure virtual |
Apply post effect from an input RenderTexture to an output RenderTarget (which may be a RenderTexture or Window). (Must be overwritten)
- Parameters
-
input | The texture to pass through. |
output | The render target (Whether it's a RenderTexture or RenderWindow) to apply the shader to. |
Implemented in VPostEffect, and VPostEffectMultipass.
◆ applyShader()
static void VPostEffectBase::applyShader |
( |
const sf::Shader & |
shader, |
|
|
sf::RenderTarget & |
output |
|
) |
| |
|
staticprotected |
Applies a shader to a render target.
- Parameters
-
shader | The sf::Shader object containing the vertex, geometry anf/or fragment shader to use. |
output | The render target (Whether it's a RenderTexture or RenderWindow) to apply the shader to. |
◆ isSupported()
static bool VPostEffectBase::isSupported |
( |
| ) |
|
|
static |
- Returns
- True if Shaders are supported on specific platform, shaders won't apply automatically if not.
◆ passThrough()
static void VPostEffectBase::passThrough |
( |
const sf::Texture & |
input, |
|
|
sf::RenderTarget & |
output |
|
) |
| |
|
staticprotected |
Simply renders an input texture onto a render target directly without any alterations.
- Parameters
-
input | The texture to pass through. |
output | The render target (Whether it's a RenderTexture or RenderWindow) to apply the shader to. |
◆ Update()
virtual void VPostEffectBase::Update |
( |
float |
dt | ) |
|
|
inlinevirtual |
Updates post effect.
- Parameters
-
dt | Delta Time between the previous and current frame. |
Reimplemented in VPostEffectMultipass.
The documentation for this class was generated from the following file:
- D:/Development/Libs/Vigilante-Game-Framework/VFrame/VPostEffect.h