![]() |
Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
|
#include <HighlightTargetEffect.hpp>
Public Member Functions | |
| HighlightTargetEffect (Application *app) | |
| ~HighlightTargetEffect () | |
| void | draw (double time, double timeDelta) |
| void | resize (vec2 const &size) |
| void | bindResultTexutre (GLuint target=0) |
Private Attributes | |
| Application * | m_app |
| array< GLuint, 1 > | m_fboFull |
| array< GLuint, 1 > | m_texFull |
| array< GLuint, 2 > | m_fboHalf |
| array< GLuint, 2 > | m_texHalf |
| Shader * | m_shaderFocusId |
| Shader * | m_shaderVBlur |
| Shader * | m_shaderHBlur |
| Shader * | m_shaderFSQuad |
| GLuint | m_vao |
| GLuint | m_positionBuffer |
| uvec2 | m_size |
HighlightTargetEffect is an effect that can be used to highlight the currently focused object using edge-glow.
Definition at line 10 of file HighlightTargetEffect.hpp.
| HighlightTargetEffect | ( | Application * | app | ) |
Constructs a HighlightTargetEffect.
| app | The global application |
Definition at line 4 of file HighlightTargetEffect.cpp.
Destructs a HighlightTargetEffect.
Definition at line 112 of file HighlightTargetEffect.cpp.
| void bindResultTexutre | ( | GLuint | target = 0 | ) |
Binds the texture which contains the effects result to the given target.
| target | The texture-target used for binding. |
Definition at line 235 of file HighlightTargetEffect.cpp.
| void draw | ( | double | time, |
| double | timeDelta | ||
| ) |
Renders the highlightTargetEffect into local FBO(s).
| time | The absolute frame time |
| timeDelta | Time since the last frame |
Definition at line 171 of file HighlightTargetEffect.cpp.
| void resize | ( | vec2 const & | size | ) |
Resize the FBOs (on window-size-change)
| size | New window-size. |
Definition at line 123 of file HighlightTargetEffect.cpp.
|
private |
The global application
Definition at line 12 of file HighlightTargetEffect.hpp.
|
private |
Screen-sized FBOs
Definition at line 14 of file HighlightTargetEffect.hpp.
|
private |
Half-screen-sized FBOs
Definition at line 17 of file HighlightTargetEffect.hpp.
|
private |
VBO for unit-quad
Definition at line 26 of file HighlightTargetEffect.hpp.
|
private |
Shader used to highlight the edge around the focus-object
Definition at line 20 of file HighlightTargetEffect.hpp.
|
private |
Shader for pass-through full-screen-quad rendering
Definition at line 23 of file HighlightTargetEffect.hpp.
|
private |
Shader for horizontal gauss-blurr
Definition at line 22 of file HighlightTargetEffect.hpp.
|
private |
Shader for vertical gauss-blurr
Definition at line 21 of file HighlightTargetEffect.hpp.
|
private |
Size of the full-size FBO
Definition at line 28 of file HighlightTargetEffect.hpp.
|
private |
Screen-sized FBO-textures
Definition at line 15 of file HighlightTargetEffect.hpp.
|
private |
Half-screen-sized FBOs-textures
Definition at line 18 of file HighlightTargetEffect.hpp.
|
private |
VAO used for unit-quad
Definition at line 25 of file HighlightTargetEffect.hpp.
1.8.7