#include <examples/rain/rain.hpp>
Public Member Functions | |
| void | event (SDL_Event &e) |
| int | height () const |
| void | on_swapchain_recreated (mxvk::VK_Window &window) |
| Rain & | operator= (const Rain &)=delete |
| Rain & | operator= (Rain &&)=delete |
| int | pitch () const |
| const void * | pixels () const |
| Rain (const Rain &)=delete | |
| Rain (const std::string &asset_root, bool binary_glyph_mode) | |
| Rain (mxvk::VK_Window &window, const std::string &asset_root, bool binary_glyph_mode) | |
| Rain (mxvk::VK_Window &window, RainConfig config) | |
| Rain (Rain &&)=delete | |
| Rain (RainConfig config) | |
| void | render () |
| void | render (int width, int height) |
| void | reset () |
| void | resize (int width, int height) |
| void | resize (mxvk::VK_Window &window) |
| void | set_opacity (float opacity) |
| mxvk::VK_Sprite * | sprite () const |
| SDL_Surface * | surface () const |
| void | sync_texture () |
| void | update (float dt) |
| void | update_and_render (mxvk::VK_Window &window) |
| void | update_and_render (mxvk::VK_Window &window, int render_width, int render_height) |
| int | width () const |
| ~Rain () | |
Static Public Member Functions | |
| static std::vector< Uint32 > | binary_symbol_set () |
| static std::vector< Uint32 > | full_symbol_set () |
| static SDL_Color | head_color () |
| static SDL_Color | matrix_color (int level) |
| matrix::Rain::Rain | ( | mxvk::VK_Window & | window, |
| RainConfig | config ) |
|
explicit |
| matrix::Rain::Rain | ( | mxvk::VK_Window & | window, |
| const std::string & | asset_root, | ||
| bool | binary_glyph_mode ) |
Definition at line 220 of file rain.cpp.
| matrix::Rain::Rain | ( | const std::string & | asset_root, |
| bool | binary_glyph_mode ) |
Definition at line 223 of file rain.cpp.
| matrix::Rain::~Rain | ( | ) |
Definition at line 226 of file rain.cpp.
|
delete |
|
delete |
|
static |
| void matrix::Rain::event | ( | SDL_Event & | e | ) |
|
static |
Definition at line 142 of file rain.cpp.
|
static |
|
nodiscard |
|
static |
Definition at line 128 of file rain.cpp.
| void matrix::Rain::on_swapchain_recreated | ( | mxvk::VK_Window & | window | ) |
|
nodiscard |
|
nodiscard |
| void matrix::Rain::render | ( | ) |
| void matrix::Rain::render | ( | int | width, |
| int | height ) |
Definition at line 286 of file rain.cpp.
| void matrix::Rain::reset | ( | ) |
| void matrix::Rain::resize | ( | int | width, |
| int | height ) |
Definition at line 247 of file rain.cpp.
| void matrix::Rain::resize | ( | mxvk::VK_Window & | window | ) |
| void matrix::Rain::set_opacity | ( | float | opacity | ) |
|
nodiscard |
|
nodiscard |
| void matrix::Rain::sync_texture | ( | ) |
| void matrix::Rain::update | ( | float | dt | ) |
| void matrix::Rain::update_and_render | ( | mxvk::VK_Window & | window | ) |
| void matrix::Rain::update_and_render | ( | mxvk::VK_Window & | window, |
| int | render_width, | ||
| int | render_height ) |
|
nodiscard |