From e48c2210b00fc612be9bf05ac1a8ed8a7f503347 Mon Sep 17 00:00:00 2001 From: James Kong Date: Fri, 1 May 2015 17:48:37 +0800 Subject: [PATCH] fixed virtual class issue ref : https://github.com/neilmendoza/ofxPostProcessing/issues/16 --- src/PostProcessing.cpp | 4 ++-- src/PostProcessing.h | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/PostProcessing.cpp b/src/PostProcessing.cpp index e829114..76fcee2 100644 --- a/src/PostProcessing.cpp +++ b/src/PostProcessing.cpp @@ -145,12 +145,12 @@ namespace itg pingPong[currentReadFbo].draw(630, 10, 300, 300); } - void PostProcessing::draw(float x, float y) const + void PostProcessing::draw(float x, float y) { draw(x, y, width, height); } - void PostProcessing::draw(float x, float y, float w, float h) const + void PostProcessing::draw(float x, float y, float w, float h) { if (flip) { diff --git a/src/PostProcessing.h b/src/PostProcessing.h index a6279e5..31e4ef5 100644 --- a/src/PostProcessing.h +++ b/src/PostProcessing.h @@ -47,8 +47,8 @@ namespace itg void end(bool autoDraw = true); // float rather than int and not const to override ofBaseDraws - void draw(float x = 0.f, float y = 0.f) const; - void draw(float x, float y, float w, float h) const; + void draw(float x = 0.f, float y = 0.f) ; + void draw(float x, float y, float w, float h) ; float getWidth() const { return width; } float getHeight() const { return height; } @@ -80,6 +80,10 @@ namespace itg ofFbo& getRawRef() { return raw; } + float getHeight(){ return 0 ; }; + float getWidth(){ return 0 ; }; + + private: void process();