From eb78e2cdb770b3cca32b960b89615f4f492ced5f Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 17 Feb 2022 18:54:14 +0300 Subject: [PATCH] Make image_view use texture_view instead of owning a texture --- libs/ui/include/psemek/ui/element_factory.hpp | 4 ++-- libs/ui/include/psemek/ui/image_view.hpp | 8 ++++---- libs/ui/source/default_element_factory.cpp | 6 ++++-- libs/ui/source/element_factory.cpp | 9 ++++----- libs/ui/source/image_view.cpp | 10 +++++----- 5 files changed, 19 insertions(+), 18 deletions(-) diff --git a/libs/ui/include/psemek/ui/element_factory.hpp b/libs/ui/include/psemek/ui/element_factory.hpp index dd1d4570..9f8cf35a 100644 --- a/libs/ui/include/psemek/ui/element_factory.hpp +++ b/libs/ui/include/psemek/ui/element_factory.hpp @@ -23,13 +23,13 @@ namespace psemek::ui { virtual std::shared_ptr make_button(); virtual std::shared_ptr make_button(std::string text); - virtual std::shared_ptr make_button(std::shared_ptr icon); + virtual std::shared_ptr make_button(gfx::texture_view_2d icon); virtual std::shared_ptr