From 2a128d32fcd6fab743331bcb597148e7d2caeed1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 13 Oct 2022 23:48:00 +0100 Subject: Allow creating a texture directly from an Image --- gfx/models/texture.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gfx/models/texture.h') diff --git a/gfx/models/texture.h b/gfx/models/texture.h index 04aa9ec..8f93a42 100644 --- a/gfx/models/texture.h +++ b/gfx/models/texture.h @@ -5,10 +5,12 @@ #include // IWYU pragma: no_forward_declare Cache +class Image; class Texture { public: explicit Texture(const std::filesystem::path & fileName); + explicit Texture(const Image & image); static Cache cachedTexture; -- cgit v1.2.3