Marbellous
Marbellous, a WebApp to generate paper marbling patterns.
Public Member Functions | List of all members
WGLFilter Class Reference

Implements a 3x3 blur filter. More...

#include <WGLFilter.hpp>

Inheritance diagram for WGLFilter:
Inheritance graph
Collaboration diagram for WGLFilter:
Collaboration graph

Public Member Functions

 WGLFilter (size_t size)
 Construct a new WGLFilter object. More...
 
void setActive () const override
 Set the WGL state needed for this shader. More...
 
void resize (size_t size)
 Resize all allocated buffers to size. More...
 
void resize () override
 Resize to the size of the current state (e.g. drop or rake) More...
 
void draw (GLuint src_tex, GLuint target_fbo)
 Apply the convolution. More...
 

Detailed Description

Implements a 3x3 blur filter.

Constructor & Destructor Documentation

◆ WGLFilter()

WGLFilter::WGLFilter ( size_t  size)

Construct a new WGLFilter object.

Parameters
sizeBuffer size in pixels.
Here is the call graph for this function:

Member Function Documentation

◆ draw()

void WGLFilter::draw ( GLuint  src_tex,
GLuint  target_fbo 
)

Apply the convolution.

Parameters
src_texTexture buffer to draw from.
target_fboFramebuffer to draw to.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resize() [1/2]

void WGLFilter::resize ( )
overridevirtual

Resize to the size of the current state (e.g. drop or rake)

Implements WGLRenderer.

Here is the call graph for this function:

◆ resize() [2/2]

void WGLFilter::resize ( size_t  size)

Resize all allocated buffers to size.

Parameters
sizeNew buffer size.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setActive()

void WGLFilter::setActive ( ) const
overridevirtual

Set the WGL state needed for this shader.

Implements WGLRenderer.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: