Multiple test/example C++ files for tinyc2.
- SFML 2.4.x
- premake5 (optional)
tinyc2-tests
is using premake5 to assist the generation of cross platform make/project files. To compile all the tests using premake5
run the following command:
premake5 <action> && cd build && make
Where <action>
specifies your build tools (e.g. 'gmake' for Gnu make or 'vs2013' for Visual Studio 2013). For further help on using premake visit the official documentation.
After the build has finished, you can find all the binaries inside build/bin/{Debug/Release}/
.
As tinyc2.h
is included with tinyc2-tests
you only need to install and link against SFML 2.4.x
. For Linux a simple g++ command should suffice:
g++ circle/CircleToCircle.cpp -I. -lsfml-graphics -lsfml-window -lsfml-system
Used wasd
to move the shape across the screen (not working for PolygonToX
yet). For RayToX
tests the ray's direction can be manipulated by moving the mouse.
tinyc2-tests
uses the same license as tinyheaders
, the zlib license.