Skip to content

Instantly share code, notes, and snippets.

@dramamine
Last active May 28, 2020 00:33
Show Gist options
  • Save dramamine/2f430d3d8eece94cd5f92097952f15da to your computer and use it in GitHub Desktop.
Save dramamine/2f430d3d8eece94cd5f92097952f15da to your computer and use it in GitHub Desktop.
Create new effect for FFGL by copying the example
# 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