PostProcessContext is the render-thread specific context that is used for post processing to work in a multi-context environment. More...
#include <Luminous/PostProcessContext.hpp>
Public Member Functions | |
| const Luminous::RenderBuffer & | depthStencilBuffer () const |
| Combined depth and stencil buffer used for rendering the scene. | |
| void | doFilter (Luminous::RenderContext &rc) |
| Performs the filtering operation by setting the style values and calling PostProcessFilter::filter() More... | |
| bool | enabled () const |
| Checks if the filter is enabled, disabled filters will be skipped. More... | |
| const PostProcessFilterPtr & | filter () const |
| Returns a reference to the filter that owns this context. More... | |
| Luminous::FrameBuffer & | frameBuffer () |
| Returns the frame buffer used for rendering the scene. | |
| const Luminous::FrameBuffer & | frameBuffer () const |
| Returns the frame buffer used for rendering the scene. More... | |
| void | initialize (Luminous::RenderContext &rc) |
| Initializes the filter. More... | |
| unsigned int | order () const |
| Returns the order of the filter corresponding to this context. More... | |
| PostProcessContext (const PostProcessFilterPtr filter) | |
| Creates a new post process filter. More... | |
| const Luminous::Texture & | texture () const |
| Color buffer texture used for rendering the scene. More... | |
PostProcessContext is the render-thread specific context that is used for post processing to work in a multi-context environment.
Use PostProcesFilter for defining custom filters.
|
explicit |
Creates a new post process filter.
| filter | filter that this context belongs to |
| void Luminous::PostProcessContext::doFilter | ( | Luminous::RenderContext & | rc | ) |
Performs the filtering operation by setting the style values and calling PostProcessFilter::filter()
| rc | Context of the current render thread |
| bool Luminous::PostProcessContext::enabled | ( | ) | const |
Checks if the filter is enabled, disabled filters will be skipped.
| const PostProcessFilterPtr& Luminous::PostProcessContext::filter | ( | ) | const |
Returns a reference to the filter that owns this context.
| const Luminous::FrameBuffer& Luminous::PostProcessContext::frameBuffer | ( | ) | const |
Returns the frame buffer used for rendering the scene.
| void Luminous::PostProcessContext::initialize | ( | Luminous::RenderContext & | rc | ) |
Initializes the filter.
By default attaches a color and depth attachments to the frame buffer and resizes the frame buffer and attachments.
| rc | Context of the current render thread |
| unsigned int Luminous::PostProcessContext::order | ( | ) | const |
Returns the order of the filter corresponding to this context.
| const Luminous::Texture& Luminous::PostProcessContext::texture | ( | ) | const |
Color buffer texture used for rendering the scene.
Use this texture as the source for the post processing filter.