40 #ifndef H_OGF_RENDERER_GL_CONTEXT_UNSHARP_MASKING_GLSL_H
41 #define H_OGF_RENDERER_GL_CONTEXT_UNSHARP_MASKING_GLSL_H
169 return positive_shadows_;
181 positive_shadows_ = x;
217 bool positive_shadows_;
222 GLuint unsharp_masking_program_;
223 GLuint blur_program_;
An OpenGL frame buffer object.
Implementation of full screen effects.
A smart pointer with reference-counted copy semantics.
Implementation of UnsharpMasking full screen effect.
double required_GLSL_version() const override
Gets the minimum required GLSL version needed to execute the shaders in this FullScreenEffectImpl.
void set_blur_width(index_t x)
Sets the size of the blurring kernel.
~UnsharpMaskingImpl() override
UnsharpMaskingImpl destructor.
void update() override
Callback called whenever parameters are changed in the GUI.
index_t get_intensity() const
Gets the intensity.
bool get_positive_shadows() const
Tests whether positive_shadows should be drawn.
index_t get_contrast() const
Gets the contrast.
bool get_halos() const
Tests whether halos should be drawn.
index_t get_blur_width() const
Gets the size of the blurring kernel.
void set_contrast(index_t x)
Sets the contrast. A value of 50 (default) corresponds to average contrast.
void display_final_texture()
Displays the final result.
void blur()
Applies a Gaussian blur to the depth buffer.
void set_positive_shadows(bool x)
Specifies whether positive_shadows should be used.
void set_halos(bool x)
Specifies whether halos should be used.
void resize(index_t width, index_t height) override
Callback called whenever the rendering context is resized.
UnsharpMaskingImpl()
UnsharpMaskingImpl constructor.
void initialize(index_t w, index_t h) override
Callback called the first time this FullScreenEffectImpl is used.
void set_intensity(index_t x)
Sets the intensity.
void pre_render(index_t w, index_t h) override
Callback called at the beginning of each frame.
void post_render() override
Callback called at the end of each frame.
Helper class for manipulating OpenGL frame buffer objects.
Low-level base class for full screen effects.
#define GEOGRAM_GFX_API
Linkage declaration for geogram symbols.
Common include file, providing basic definitions. Should be included before anything else by all head...
Global Vorpaline namespace.
SmartPointer< UnsharpMaskingImpl > UnsharpMaskingImpl_var
An automatic reference-counted pointer to an UnsharpMaskingImpl.
geo_index_t index_t
The type for storing and manipulating indices.