The BlurEffect blurs a given texture.
More...
#include <blureffect.h>
|
| | BlurEffect (QOpenGLFunctions &gl, uint glowTexture, QObject *parent=nullptr) |
| | Creates a new BlurEffect that will blur a specified texture everytime blur() is called. More...
|
| |
| virtual | ~BlurEffect () |
| |
| void | blur (const QSize &textureSize) |
| | Blurs previous set texture. The texture is blurred using two seperated passes of gauss blur. The result is a gaussblur with 9x9 kernel. More...
|
| |
The BlurEffect blurs a given texture.
| BlurEffect::BlurEffect |
( |
QOpenGLFunctions & |
gl, |
|
|
uint |
glowTexture, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
Creates a new BlurEffect that will blur a specified texture everytime blur() is called.
- Parameters
-
| gl | The QOpenGLFuntions will be used for all gl-calls. |
| glowTexture | The texture that will be blurred. |
| parent | QObject-parent |
| BlurEffect::~BlurEffect |
( |
| ) |
|
|
virtual |
| void BlurEffect::blur |
( |
const QSize & |
textureSize | ) |
|
Blurs previous set texture. The texture is blurred using two seperated passes of gauss blur. The result is a gaussblur with 9x9 kernel.
- Parameters
-
| textureSize | The size of texture, because changing texture sizes is supported. |
| void BlurEffect::initialize |
( |
| ) |
|
|
protected |
| void BlurEffect::initializeFBOs |
( |
| ) |
|
|
protected |
| void BlurEffect::initializeShaderPrograms |
( |
| ) |
|
|
protected |
| void BlurEffect::renderGaussHorizontal |
( |
const QSize & |
textureSize | ) |
|
|
protected |
Blurs texture horizontally.
- Parameters
-
| textureSize | The current size of texture that is blurred. |
| void BlurEffect::renderGaussVertical |
( |
const QSize & |
textureSize | ) |
|
|
protected |
Blurs texture vertically.
- Parameters
-
| textureSize | The current size of texture that is blurred. |
| uint BlurEffect::m_blurFBO |
|
protected |
| uint BlurEffect::m_blurTexture |
|
protected |
| QOpenGLFunctions& BlurEffect::m_gl |
|
protected |
| bool BlurEffect::m_initialized |
|
protected |
| uint BlurEffect::m_secondaryBlurFBO |
|
protected |
| uint BlurEffect::m_secondaryBlurTexture |
|
protected |
| QMap<ShaderPrograms, QOpenGLShaderProgram*>* BlurEffect::m_shaderPrograms |
|
protected |
| QSize* BlurEffect::m_usedViewport |
|
protected |
The documentation for this class was generated from the following files: