-
Notifications
You must be signed in to change notification settings - Fork 27
Setup
All drawable classes can be used independant of each other; they don't rely on the other drawable classes.
All drawable classes require the small header, Common.hpp.
The standard way to specify the namespace for the drawables is to use the shortcut, sw
e.g. sw::Line
However, it's possible that there may be other libraries that use this namespace so, to avoid clashes, you can do the following:
- use
#define SELBAWARD_NO_NAMESPACE_SHORTCUT
before including any Selba Ward headers, and - use the full namespace e.g.
selbaward::Line
Note: you can use the full namespace even if you are having no problems with naming clashes and have not done step 1, if you would prefer to do so.
All of these drawables are designed to work with SFML v2, which is required.
Using the latest version is recommended and can be downloaded here (the official site).
Since it uses the Graphics module, you will need to link to (at least) the following libraries:
sfml-graphics, sfml-window, sfml-system
or
sfml-graphics-d, sfml-window-d, sfml-system-d (for debug setups)
If you are linking statically, you will need to link to the static versions (-s) instead as well as manually link to all of those modules' dependencies. See the relevant tutorial in the Getting Started section of the SFML Tutorials and also the official SFML FAQ for more information.