diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-23 19:41:31 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:57 +0200 |
commit | 486ca3846b46dc229e5807968578809766ec1991 (patch) | |
tree | 65a4b7a746d6305666af06f8a1975c76244085a7 /src/engine/graphics/scene.cpp | |
parent | b8e86ce397dc07320c02f6a5f592c7c6a4421c86 (diff) |
feat: implement generations & multithreading
Diffstat (limited to 'src/engine/graphics/scene.cpp')
-rw-r--r-- | src/engine/graphics/scene.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/engine/graphics/scene.cpp b/src/engine/graphics/scene.cpp index 4e382fe..24c174f 100644 --- a/src/engine/graphics/scene.cpp +++ b/src/engine/graphics/scene.cpp @@ -45,26 +45,6 @@ void Scene::leave() noexcept _is_shown = false; } -void Scene::write_status(const std::string_view &str) noexcept -{ - const auto previous_position = _cursor_controller->where(); - - const auto window_size = _window->size(); - - _cursor_controller->move_to( - Vector2({.x = 2, .y = static_cast<Vector2::Value>(window_size.get_height())}), - true); - - auto background_color = get_background_esc_seq(STATUSBAR_COLOR); - - fmt::print("{}", background_color); - fmt::print(ERASE_ENTIRE_LINE, fmt::arg("esc", ESC)); - fmt::print(fmt::runtime(str.data())); - fmt::print(RESET_ALL_MODES, fmt::arg("esc", ESC)); - - _cursor_controller->move_to(previous_position, true); -} - const std::shared_ptr<IMatrix<std::string_view>> &Scene::get_matrix() const noexcept { return _matrix; |