-
-
Notifications
You must be signed in to change notification settings - Fork 11
Namespaces
Maverick Peppers edited this page Nov 1, 2018
·
24 revisions
Swoosh as a stand-alone library also comes with other utilities specific to but not limited to gaming.
The basics
- class Activity
- class Segue
- class ActivityController
- class Timer
Math that makes cool animations over time with little effort Each function returns a value from 0 -> 1.0
- function double linear(elapsed, duration, exponent)
- function double wideParabola(elapsed, duration, exponent)
- function double bezierPopIn(elapsed, duration)
- function double bezierPopOut(elapsed, duration)
Aliases tucked away to make the library easier to use
- typename segue<Segue, Duration>::to<Destination>
- typename seconds
- typename milliseconds
- typename microseconds
Game logic and utility functions to shorten SFML code
- function bool doesCollide(a, b)
- function double angleTo(subject, target)
- function vector2 normalize(input)
- function vector2 direction(target, dest)
- function void setOrigin(sprite, fx, fy)
- function void setOrigin(text, fx, fy)
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.