Skip to content

Namespaces

Maverick Peppers edited this page Dec 27, 2018 · 24 revisions

Swoosh as a stand-alone library also comes with other utilities specific to but not limited to gaming.

using namespace swoosh;

The basics

ActionList and useful action item types

using namespace swoosh::ease;

Math that makes cool animations over time with little effort Each function returns a value from 0 -> 1.0

using namespace swoosh::intent;

Aliases tucked away to make the library easier to use

  • typename segue<Segue, Duration>::to<Destination>
  • typename seconds
  • typename milliseconds
  • typename microseconds

Inputs used for some segues

  • enum direction { left, right, up, down };

using namespace swoosh::game;

Game logic and utility functions to shorten SFML code

using namespace swoosh::glsl;

This namespace is useless by itself but it does export the GLSL(version, shader) macro that makes it easy to write shaders directly into your source files.

Clone this wiki locally