Skip to content

Namespaces

TheMaverickProgrammer edited this page Jun 10, 2020 · 24 revisions

Swoosh library also comes with other utilities specifically to add polish to your SFML applications

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::types*

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 };

using namespace swoosh::glsl

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.

using namespace swoosh::game;

Game logic and utility functions to shorten SFML code


*originally namespace intent. Changed in v1.2.3

Clone this wiki locally