diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 23:48:00 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 23:48:00 +0100 |
commit | 2a128d32fcd6fab743331bcb597148e7d2caeed1 (patch) | |
tree | e6032712b71ba76ccb9c63fb0b168bdee322cf41 /gfx/models/texture.h | |
parent | Scoped Builder::Ptr (diff) | |
download | ilt-2a128d32fcd6fab743331bcb597148e7d2caeed1.tar.bz2 ilt-2a128d32fcd6fab743331bcb597148e7d2caeed1.tar.xz ilt-2a128d32fcd6fab743331bcb597148e7d2caeed1.zip |
Allow creating a texture directly from an Image
Diffstat (limited to 'gfx/models/texture.h')
-rw-r--r-- | gfx/models/texture.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <glArrays.h>
// 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<Texture, std::filesystem::path> cachedTexture;
|