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
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Release">
<Testables>
Expand All @@ -39,11 +39,12 @@
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
Expand Down
5 changes: 5 additions & 0 deletions src/BloomPass.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ namespace itg
void allocateSelectiveGlow(unsigned w, unsigned h);
void beginSelectiveGlow(bool clear = true);
void endSelectiveGlow();

void setIncrements(float _x1, float _y1, float _x2, float _y2) {
xConv->setIncrement(_x1, _y1);
yConv->setIncrement(_x2, _y2);
}

void debugDraw();

Expand Down
7 changes: 6 additions & 1 deletion src/ConvolutionPass.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ namespace itg
typedef shared_ptr<ConvolutionPass> Ptr;

ConvolutionPass(const ofVec2f& aspect, bool arb, const ofVec2f& imageIncrement = ofVec2f(0.001953125, 0), float sigma = 4, unsigned kernelSize = 25);


void setIncrement(float _x, float _y) {
imageIncrement.x = _x;
imageIncrement.y = _y;
}

void render(ofFbo& readFbo, ofFbo& writeFbo);

bool hasArbShader() { return true; }
Expand Down
6 changes: 5 additions & 1 deletion src/PixelatePass.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ namespace itg
PixelatePass(const ofVec2f& aspect, bool arb, const ofVec2f& resolution = ofVec2f(100.f, 100.f));

void render(ofFbo& readFbo, ofFbo& writeFbo);


ofVec2f getResolution() const { return resolution; }
void setResolution(ofVec2f) { this->resolution = resolution; }
void setResolution(float _w, float _h) { this->resolution = ofVec2f(_w, _h); }

private:
ofShader shader;
ofVec2f resolution;
Expand Down
4 changes: 3 additions & 1 deletion src/PostProcessing.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ namespace itg
void draw(float x, float y, float w, float h);
float getWidth() { return width; }
float getHeight() { return height; }

void setWidth(float _w) { width = _w; }
void setHeight(float _h) { height = _h; }

void debugDraw();

template<class T>
Expand Down