Tucano  0.1
A library for rapid prototyping with modern OpenGL and GLSL
Tucano::Effects::RenderBuffer Class Reference

A simple effect to render a buffer without any interpolation. More...

#include <renderbuffer.hpp>

Inheritance diagram for Tucano::Effects::RenderBuffer:
Tucano::Effect

Public Member Functions

 RenderBuffer (void)
 Default Constructor. More...
 
virtual void initialize ()
 Initializes the effect, creating and loading the shader. More...
 
void applyAAFilter (bool a)
 
void render (Tucano::Framebuffer &fbo, GLint attach_id=0)
 Renders the given FBO attachment. More...
 
- Public Member Functions inherited from Tucano::Effect
 Effect (string shadersDir="shaders/")
 Default constructor. More...
 
virtual ShaderloadShader (string shader_name)
 Loads a shader by filename, initializes it, and inserts in shaders list. More...
 
virtual void loadShader (Shader &shader, string shader_name)
 
virtual ShaderloadShader (string shader_name, string vertex_name, string frag_name, string geom_name)
 Loads a shader by complete filenames (with extensions), initializes it, and inserts in shaders list. More...
 
void setShadersDir (string dir)
 
virtual void reloadShaders (void)
 Reloads all shaders needed for effect usage. More...
 

Private Attributes

Tucano::Shader shader
 The mean filter shader. More...
 
Tucano::Mesh quad
 A quad to be rendered forcing one call of the fragment shader per image pixel (its just a proxy geometry) More...
 
bool use_aa_filter = false
 use gaussian filter as antialiasing More...
 

Additional Inherited Members

- Protected Attributes inherited from Tucano::Effect
std::vector< Shader * > shaders_list
 Vector of pointers to shaders used in this effect, in case the user needs multiple pass rendering. More...
 
string shaders_dir
 Directory in which the shader files are stored. More...
 

Detailed Description

A simple effect to render a buffer without any interpolation.

Constructor & Destructor Documentation

Tucano::Effects::RenderBuffer::RenderBuffer ( void  )
inline

Default Constructor.

Member Function Documentation

void Tucano::Effects::RenderBuffer::applyAAFilter ( bool  a)
inline
virtual void Tucano::Effects::RenderBuffer::initialize ( void  )
inlinevirtual

Initializes the effect, creating and loading the shader.

Implements Tucano::Effect.

void Tucano::Effects::RenderBuffer::render ( Tucano::Framebuffer fbo,
GLint  attach_id = 0 
)
inline

Renders the given FBO attachment.

Renders the given attachment of an FBO.

Parameters
fboGiven fbo
attach_idId of the FBO attach to render

Member Data Documentation

Tucano::Mesh Tucano::Effects::RenderBuffer::quad
private

A quad to be rendered forcing one call of the fragment shader per image pixel (its just a proxy geometry)

Tucano::Shader Tucano::Effects::RenderBuffer::shader
private

The mean filter shader.

bool Tucano::Effects::RenderBuffer::use_aa_filter = false
private

use gaussian filter as antialiasing


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