-
-
Notifications
You must be signed in to change notification settings - Fork 10
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.
The basics
- class Activity
- class Segue
- class ActivityController
- class Timer
ActionList and useful action item types
- class ActionList
- class ActionItem
- class BlockingActionItem
- class ClearPreviousActions
- class ClearAllActions
- class ConditionalBranchListAction
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 inOut(elapsed, duration)
- function double wideParabola(elapsed, duration, exponent)
- function double bezierPopIn(elapsed, duration)
- function double bezierPopOut(elapsed, duration)
- function double sinuoidBounceOut(elapsed, duration)
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 };
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 directionTo(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.