mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 18:59:59 +01:00
Finishing Sharpen Image filters
This commit is contained in:
@@ -614,6 +614,15 @@ void SharpenFilter::setMethod(int method)
|
||||
setProgram( programs_[ (int) method_] );
|
||||
}
|
||||
|
||||
void SharpenFilter::draw (FrameBuffer *input)
|
||||
{
|
||||
// Default
|
||||
if (method_ == SHARPEN_INVALID)
|
||||
setMethod( SHARPEN_MASK );
|
||||
|
||||
ImageFilter::draw( input );
|
||||
}
|
||||
|
||||
void SharpenFilter::accept (Visitor& v)
|
||||
{
|
||||
FrameBufferFilter::accept(v);
|
||||
|
||||
Reference in New Issue
Block a user