Lums
Public Member Functions | List of all members
lm::ShaderPipeline Class Reference

A class describing a chain of shaders. More...

#include <ShaderPipeline.hpp>

Public Member Functions

 ShaderPipeline ()
 
void setWindow (const Window &win)
 
void bind ()
 
void append (const ShaderProgram &shader)
 
void prepend (const ShaderProgram &shader)
 
void clear ()
 
void render ()
 
 ~ShaderPipeline ()
 

Detailed Description

A class describing a chain of shaders.

This class implements something known as ping-pong rendering.

Constructor & Destructor Documentation

lm::ShaderPipeline::ShaderPipeline ( )

Create a shader pipeline

lm::ShaderPipeline::~ShaderPipeline ( )

Shader pipeline dtor

Member Function Documentation

void lm::ShaderPipeline::append ( const ShaderProgram shader)

Append a shader to the pipeline

Parameters
shaderThe shader to append
void lm::ShaderPipeline::bind ( )

Bind the pipeline. You should call this function before rendering

void lm::ShaderPipeline::clear ( )

Remove every shader from the pipeline

void lm::ShaderPipeline::prepend ( const ShaderProgram shader)

Prepend a shader to the pipeline

Parameters
shaderThe shader to prepend
void lm::ShaderPipeline::render ( )

Render the pipeline to screen

void lm::ShaderPipeline::setWindow ( const Window win)

Set the shader pipeline active window

Parameters
winA reference to a window

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