This project contains demo code to showcase some of the Tweeny features, and some extra code to support them.
All code lives inside the src/
folder.
It outputs in the console all easing curves that come bundled in Tweeny. It
waits for you to press the RETURN
before showing the next curve.
Shows how different types of loops can be implemented via callbacks. It also showcases some of the callback types you can use (functos, functions, lambdas, etc).
Showcases how can you interpolate hetergoneous values in a single tween.
To build the demo code you should first clone this repository and its submodules. It can be done with a single command:
git clone --recursive https://github.com/mobius3/tweeny-demos.git
If you decide to download an archive of this repository (as opposed of
cloning it), be sure to also download tweeny
and put it inside the
libs/tweeny
folder.
- Create a build folder inside the newly cloned repository:
cd tweeny-temos
mkdir build
- Execute
cmake
inside:
cd build
cmake ...
- Build the example you want to see:
make easings
- The built code will be available under the
build/src
folder, to execute it:
./src/easings
- Open CMake GUI and select the top level directory of tweeny as source
- Select or create a build folder (it can be inside of tweeny)
- Select the generator (depending on your compiler/IDE)
- Click GENERATE
- Open the generated project in your IDE, select the target and run it from there.
If you have an idea for a demo, you are welcome to submit a pull request. See the tweeny repository for instructions on code style.