From 74bb9cd27242b9320f99ff4d2b50c3051576cc14 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Feb 2022 16:53:51 +0800 Subject: ... --- include/cru/platform/graphics/util/Painter.hpp | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 include/cru/platform/graphics/util/Painter.hpp (limited to 'include/cru/platform/graphics/util/Painter.hpp') diff --git a/include/cru/platform/graphics/util/Painter.hpp b/include/cru/platform/graphics/util/Painter.hpp deleted file mode 100644 index 2e0fbb51..00000000 --- a/include/cru/platform/graphics/util/Painter.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once -#include "../Painter.hpp" - -#include -#include - -namespace cru::platform::graphics::util { -template -void WithTransform(IPainter* painter, const Matrix& matrix, const Fn& action) { - static_assert(std::is_invocable_v, - "Action must can be be invoked with painter."); - const auto old = painter->GetTransform(); - painter->PushState(); - painter->ConcatTransform(matrix); - action(painter); - painter->PopState(); -} -} // namespace cru::platform::graphics::util -- cgit v1.2.3