Euphoria
eu::render::RenderTextureWithShader Struct Reference

Applies a shader to the output of another source. More...

Inheritance diagram for eu::render::RenderTextureWithShader:
eu::render::RenderSource

Public Member Functions

 RenderTextureWithShader (std::string n, std::shared_ptr< RenderSource > s, std::shared_ptr< FrameBuffer > f, ShaderPropertyProvider *e)
void render (const PostProcArg &arg) override
 render internal fbo to a quad with a shader
void update (const PostProcArg &arg)
 call render on linked source and render to fbo
Public Member Functions inherited from eu::render::RenderSource
 RenderSource ()=default
virtual ~RenderSource ()=default
 RenderSource (const RenderSource &)=delete
 RenderSource (RenderSource &&)=delete
void operator= (const RenderSource &)=delete
void operator= (RenderSource &&)=delete

Public Attributes

std::string name
std::shared_ptr< RenderSourcesource
std::shared_ptr< FrameBufferfbo
ShaderPropertyProvidereffect

Detailed Description

Applies a shader to the output of another source.

This is done using a framebuffer that is rendered to a quad with the shader applied.

Definition at line 67 of file postproc.h.

Constructor & Destructor Documentation

◆ RenderTextureWithShader()

eu::render::RenderTextureWithShader::RenderTextureWithShader ( std::string n,
std::shared_ptr< RenderSource > s,
std::shared_ptr< FrameBuffer > f,
ShaderPropertyProvider * e )

Member Function Documentation

◆ render()

void eu::render::RenderTextureWithShader::render ( const PostProcArg & arg)
overridevirtual

render internal fbo to a quad with a shader

Implements eu::render::RenderSource.

◆ update()

void eu::render::RenderTextureWithShader::update ( const PostProcArg & arg)

call render on linked source and render to fbo

Member Data Documentation

◆ effect

ShaderPropertyProvider* eu::render::RenderTextureWithShader::effect

Definition at line 72 of file postproc.h.

◆ fbo

std::shared_ptr<FrameBuffer> eu::render::RenderTextureWithShader::fbo

Definition at line 71 of file postproc.h.

◆ name

std::string eu::render::RenderTextureWithShader::name

Definition at line 69 of file postproc.h.

◆ source

std::shared_ptr<RenderSource> eu::render::RenderTextureWithShader::source

Definition at line 70 of file postproc.h.


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