FxTileGenerator.h file
Namespaces
- namespace Jazz2
- Root namespace of Jazz² Resurrection.
- namespace Jazz2::Formats
- The game's own level and tile set formats.
- namespace Jazz2::Editor
Enums
-
enum class FxTileKind : std::
uint8_t { ClearGlass, GlassBlocks, FrostedGlass, Water, HeatHaze, Magnifier, Puddle, Count } - Effect the tiles of a blur behind layer are made with, see GenerateFxTiles().
Functions
-
void GenerateFxTiles(FxTileKind kind,
std::
int32_t widthTiles, std:: int32_t heightTiles, float strength, Formats::TileSetData& tiles) - Makes the tiles of an effect for a blur behind layer, as true color tiles without collision.
- void ShowFxTileGeneratorDialog(IEditorContext& session)
- Asks for an effect and a size, adds the tiles of it to the tile set shown in the tile picker and makes them the brush, to paint them on a layer drawn as blur behind.
Enum documentation
enum class FxTileKind : std:: uint8_t
Effect the tiles of a blur behind layer are made with, see GenerateFxTiles().
| Enumerators | |
|---|---|
| ClearGlass |
A clear pane that bends what's behind it a little, as a lens |
| GlassBlocks |
A wall of glass blocks, each a little lens that softens what's behind it |
| FrostedGlass |
Frosted glass, what's behind it is blurred |
| Water |
Water seen from the side, it reflects near its top and blurs deeper down, in waves |
| HeatHaze |
Rising heat, it shimmers what's behind it |
| Magnifier |
A round lens that magnifies what's behind it |
| Puddle |
A puddle on the ground, it reflects what's above it, a little rippled |
| Count |
|
Function documentation
void GenerateFxTiles(FxTileKind kind,
std:: int32_t widthTiles,
std:: int32_t heightTiles,
float strength,
Formats::TileSetData& tiles)
Makes the tiles of an effect for a blur behind layer, as true color tiles without collision.
A rectangle of widthTiles × heightTiles tiles, row by row. Their red and green are the displacement (128 is none, a step is a quarter of a pixel), blue the reflection and alpha the blur, 0 for no effect at all (see Tiles::strength from 0 to 1 scales the effect.