Last active
May 28, 2020 00:33
-
-
Save dramamine/2f430d3d8eece94cd5f92097952f15da to your computer and use it in GitHub Desktop.
Create new effect for FFGL by copying the example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run using Git Bash, or equivalent | |
# run from your local copy of the ffgl repo | |
# first parameter is the effect filename to use. CamelCase, no spaces | |
create_effect () { | |
cp build/windows/AddSubtract.vcxproj build/windows/$1.vcxproj | |
sed -i "/ProjectGuid/d" build/windows/$1.vcxproj | |
sed -i "s/AddSubtract/$1/g" build/windows/$1.vcxproj | |
cp -r source/plugins/AddSubtract source/plugins/$1 | |
cd source/plugins/$1 | |
mv AddSubtract.cpp $1.cpp | |
mv AddSubtract.h $1.h | |
sed -i "s/AddSubtract/$1/g" $1.cpp | |
sed -i "s/AddSubtract/$1/g" $1.h | |
cd ../../.. | |
} | |
create_effect "Vignette" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment