diff options
| author | Tim Redfern <tim@getdrop.com> | 2022-08-19 13:33:06 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2022-08-19 13:33:06 +0100 |
| commit | 77ce73a9b57cf3deac08720b449886b71412ea2f (patch) | |
| tree | b0a388e36993132f8b2d3bbca02504d90ca07b30 /lasertext/src/lineTransformer.h | |
| parent | 08968b9557456b3b9d3566d4dca1b9190bd8fba1 (diff) | |
text with mapping and moveable star emitter
Diffstat (limited to 'lasertext/src/lineTransformer.h')
| -rw-r--r-- | lasertext/src/lineTransformer.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lasertext/src/lineTransformer.h b/lasertext/src/lineTransformer.h new file mode 100644 index 0000000..f5ec22f --- /dev/null +++ b/lasertext/src/lineTransformer.h @@ -0,0 +1,21 @@ +#pragma once + +#include "ofMain.h" +#include "colourPolyline.h" + +class lineTransformer { + + public: + lineTransformer(){ + } + void static drawWarpFrame(glm::vec2 warpframe[4]); + void static gaussianElimination(float * input, int n); + glm::mat4 static getPerspectiveTransformMatrix(const glm::vec2 src[4], const glm::vec2 dst[4]); + ofPolyline static polyLineTransform(const ofMatrix4x4 xform,const ofPolyline& poly); + ofPolyline static polyLineTransform(ofPoint (*transferFunction)(const ofPoint),const ofPolyline& poly); + colourPolyline static polyLineTransform(const ofMatrix4x4 xform,colourPolyline& poly,float colourFade=1.0f); + colourPolyline static polyLineTransform(ofPoint (*transferFunction)(const ofPoint),colourPolyline& poly,float colourFade=1.0f); + ofPolyline static makePolygon(int num,float diam); + void static drawPoly(ofPolyline poly,float x,float y); + +};
\ No newline at end of file |
