Static Public Member Functions

Tiny2D::Postprocessing Class Reference

Built-in postprocesses functionality. More...

#include <Tiny2D.h>

List of all members.

Static Public Member Functions

static void EnableBloom (bool enable=true, float blendFactor=0.3f, float blurKernel=1.0f, int numBlurSteps=1)
 Toggles bloom postprocess.
static bool IsBloomEnabled ()
 Checks if bloom postprocess is currently enabled.
static void EnableOldTV (bool enable=true)
 Toggles "Old TV" postprocess.
static bool IsOldTVEnabled ()
 Checks if "Old TV" postprocess is currently enabled.
static void StartQuake (bool start=true, float strength=1.0f, float length=1.0f)
 Starts "Screen Quake" implemented as a postprocess; it will get disabled by itself after 'length' seconds.
static bool IsQuakeEnabled ()
 Checks if "Screen Quake" postprocess is currently enabled.
static void EnableRainyGlass (bool enable=true, float spawnFrequency=1.0f, float dropletSpeed=0.5f, float dropletMinSize=0.02f, float dropletMaxSize=0.04f)
 Toggles postprocess of "rainy glass" (rain drops falling down the glass window)
static bool IsRainyGlassEnabled ()
 Checks if rainy glass postprocess is currently enabled.

Detailed Description

Built-in postprocesses functionality.


Member Function Documentation

static void Tiny2D::Postprocessing::EnableBloom ( bool  enable = true,
float  blendFactor = 0.3f,
float  blurKernel = 1.0f,
int  numBlurSteps = 1 
) [static]

Toggles bloom postprocess.

static void Tiny2D::Postprocessing::EnableOldTV ( bool  enable = true ) [static]

Toggles "Old TV" postprocess.

static void Tiny2D::Postprocessing::EnableRainyGlass ( bool  enable = true,
float  spawnFrequency = 1.0f,
float  dropletSpeed = 0.5f,
float  dropletMinSize = 0.02f,
float  dropletMaxSize = 0.04f 
) [static]

Toggles postprocess of "rainy glass" (rain drops falling down the glass window)

static bool Tiny2D::Postprocessing::IsBloomEnabled (  ) [static]

Checks if bloom postprocess is currently enabled.

static bool Tiny2D::Postprocessing::IsOldTVEnabled (  ) [static]

Checks if "Old TV" postprocess is currently enabled.

static bool Tiny2D::Postprocessing::IsQuakeEnabled (  ) [static]

Checks if "Screen Quake" postprocess is currently enabled.

static bool Tiny2D::Postprocessing::IsRainyGlassEnabled (  ) [static]

Checks if rainy glass postprocess is currently enabled.

static void Tiny2D::Postprocessing::StartQuake ( bool  start = true,
float  strength = 1.0f,
float  length = 1.0f 
) [static]

Starts "Screen Quake" implemented as a postprocess; it will get disabled by itself after 'length' seconds.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines