-
-
Notifications
You must be signed in to change notification settings - Fork 10
Namespaces
Swoosh library also comes with other utilities specifically to add polish to your SFML applications
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
- enum direction { left, right, up, down };
Built-in shader effects you can use in your SFML apps or create custom segue effects
Also exports the GLSL(version, shader)
macro that makes it easy to write shaders directly into your source files.
- class Shader
- class FastGausianBlur
- class Checkerboard
- class CircleMask
- class RetroBlit
- class CrossZoom
- class Morph
- class PageTurn
- class Pixelate
- class RadialCCW
Each shader object can apply() themselves directly onto a render surface
Use const sf::Shader& getShader() const
to grab the shader info object object and apply directly onto other sprites in your scene.
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)
*originally namespace intent
. Changed in v1.2.3