Rendu
A lightweight rendering engine for experimentations
Main Page
Modules
Namespaces
Classes
Files
Related Pages
File List
Loading...
Searching...
No Matches
src
engine
processing
BoxBlur.hpp
1
#pragma once
2
3
#include "resources/Texture.hpp"
4
#include "graphics/Program.hpp"
5
#include "Common.hpp"
6
12
class
BoxBlur
{
13
14
public
:
20
BoxBlur
(
bool
approximate,
const
std::string & name);
21
28
void
process
(
const
Texture
& src,
Texture
& dst);
29
30
private
:
31
37
void
resize
(uint width, uint height);
38
39
Program
*
_blur2D
;
40
Program
*
_blurArray
;
41
Program
*
_blurCube
;
42
Program
*
_blurCubeArray
;
43
Texture
_intermediate
;
44
};
BoxBlur
Applies a box blur of fixed radius 2. Correspond to uniformly averaging values over a 5x5 square wind...
Definition:
BoxBlur.hpp:12
BoxBlur::_intermediate
Texture _intermediate
Intermediate texture.
Definition:
BoxBlur.hpp:43
BoxBlur::process
void process(const Texture &src, Texture &dst)
Definition:
BoxBlur.cpp:17
BoxBlur::resize
void resize(uint width, uint height)
Definition:
BoxBlur.cpp:93
BoxBlur::_blurArray
Program * _blurArray
Box blur program.
Definition:
BoxBlur.hpp:40
BoxBlur::_blurCube
Program * _blurCube
Box blur program.
Definition:
BoxBlur.hpp:41
BoxBlur::_blurCubeArray
Program * _blurCubeArray
Box blur program.
Definition:
BoxBlur.hpp:42
BoxBlur::_blur2D
Program * _blur2D
Box blur program.
Definition:
BoxBlur.hpp:39
Program
Represents a group of shaders used for rendering.
Definition:
Program.hpp:31
Texture
Represents a texture containing one or more images, stored on the CPU and/or GPU.
Definition:
Texture.hpp:12
Generated by
Doxygen
1.9.5 - Theme by
Simon Rodriguez