Ctrl+K

PostProcessor

Declaration

public class Strawberry.Graphics.PostProcessor

Manages chained post-processing effects applied to render targets.

Constructors

PostProcessor

Creates a new post-processor with the specified graphics context.

void PostProcessor(IGraphicsContext graphicsContext)

Parameters:

Name Type Description
graphicsContext Strawberry.Graphics.IGraphicsContext The graphics context to use for rendering.

Properties

GraphicsContext

IGraphicsContext GraphicsContext { get }

Methods

Activate

Activates the first effect in the post-processor and renders it to the screen.

void Activate()

Render

Starts the post-processing effect chain.

void Render()

AddPostProcessEffect

Adds a post process effect to the list of effects

void AddPostProcessEffect(string name, PostProcessEffect effect)

Parameters:

Name Type Description
name System.String Name of the post process effect
effect Strawberry.Graphics.PostProcessEffect Effect to add

RemovePostProcessEffect

Removes a post process effect from the list of effects

void RemovePostProcessEffect(string name)

Parameters:

Name Type Description
name System.String Name of the post process effect