First implementation of image processing shader de-activation for

sources.
This commit is contained in:
brunoherbelin
2020-07-30 02:03:01 +02:00
parent a85ded6b5a
commit fd0979887a
7 changed files with 84 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ MediaSource::MediaSource() : Source(), path_("")
// - textured with original texture from media player
// - crop & repeat UV can be managed here
// - additional custom shader can be associated
mediasurface_ = new Surface(rendershader_);
mediasurface_ = new Surface(renderingshader_);
}
@@ -60,6 +60,11 @@ uint MediaSource::texture() const
return mediaplayer_->texture();
}
void MediaSource::replaceRenderingShader()
{
mediasurface_->replaceShader(renderingshader_);
}
void MediaSource::init()
{
if ( mediaplayer_->isOpen() ) {