diff --git a/LICENCE.txt b/LICENCE.txt new file mode 100644 index 0000000..83fb812 --- /dev/null +++ b/LICENCE.txt @@ -0,0 +1,32 @@ +/* + * ofxBezierWarp + * + * Copyright 2013 (c) Matthew Gingold http://gingold.com.au + * Adapted from: http://forum.openframeworks.cc/index.php/topic,4002.0.html + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * + * If you're using this software for something cool consider sending + * me an email to let me know about your project: m@gingold.com.au + * + */ \ No newline at end of file diff --git a/README.md b/README.md index 5581966..56d0569 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ ofxBezierWarp ============= -ofxBezierWarp \ No newline at end of file +Performs a warp using openGL bezier surfaces on anything you care to distort/undistort. + +Syntax is much like an FBO, with an allocate, begin, end, draw style interface. + +It's pretty fast. + +Code was adapted from the method described here: http://forum.openframeworks.cc/index.php/topic,4002.0.html \ No newline at end of file diff --git a/src/ofxBezierWarp.cpp b/src/ofxBezierWarp.cpp index efb74eb..42eeab9 100755 --- a/src/ofxBezierWarp.cpp +++ b/src/ofxBezierWarp.cpp @@ -1,10 +1,35 @@ -// -// ofxBezierWarp.cpp -// emptyExample -// -// Created by game over on 7/03/13. -// Copyright (c) 2013 trace media. All rights reserved. -// +/* + * ofxBezierWarp.cpp + * + * Copyright 2013 (c) Matthew Gingold http://gingold.com.au + * Adapted from: http://forum.openframeworks.cc/index.php/topic,4002.0.html + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * + * If you're using this software for something cool consider sending + * me an email to let me know about your project: m@gingold.com.au + * + */ #include "ofxBezierWarp.h" diff --git a/src/ofxBezierWarp.h b/src/ofxBezierWarp.h index dbb9457..4b0717b 100755 --- a/src/ofxBezierWarp.h +++ b/src/ofxBezierWarp.h @@ -1,9 +1,35 @@ -// -// ofxBezierWarp.h -// -// Created by game over on 7/03/13. -// Copyright (c) 2013 trace media. All rights reserved. -// +/* + * ofxBezierWarp.h + * + * Copyright 2013 (c) Matthew Gingold http://gingold.com.au + * Adapted from: http://forum.openframeworks.cc/index.php/topic,4002.0.html + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * + * If you're using this software for something cool consider sending + * me an email to let me know about your project: m@gingold.com.au + * + */ #ifndef _H_OFXBEZIERWARP #define _H_OFXBEZIERWARP