Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/PostProcessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
8 changes: 6 additions & 2 deletions src/PostProcessing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down Expand Up @@ -80,6 +80,10 @@ namespace itg

ofFbo& getRawRef() { return raw; }

float getHeight(){ return 0 ; };
float getWidth(){ return 0 ; };


private:
void process();

Expand Down