summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-01-01 18:51:39 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-01-01 18:51:39 +0000
commitf6cdb32b21e79f5c75cbe28345546524f7333d64 (patch)
treea82ea98e04f996c7db6452de65ba14f7ce8f9211
parentGeneric solution for glGen/glDel arrays, then tidy-up the uses (diff)
downloadilt-f6cdb32b21e79f5c75cbe28345546524f7333d64.tar.bz2
ilt-f6cdb32b21e79f5c75cbe28345546524f7333d64.tar.xz
ilt-f6cdb32b21e79f5c75cbe28345546524f7333d64.zip
Don't forward declare Cache
-rw-r--r--gfx/models/texture.h3
-rw-r--r--lib/cache.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/gfx/models/texture.h b/gfx/models/texture.h
index 6dbe9af..35c8c8b 100644
--- a/gfx/models/texture.h
+++ b/gfx/models/texture.h
@@ -1,10 +1,11 @@
#ifndef TEXTURE_H
#define TEXTURE_H
+#include <cache.h>
#include <filesystem>
#include <glArrays.h>
-template<typename Obj> class Cache;
+// IWYU pragma: no_forward_declare Cache
class Texture {
public:
diff --git a/lib/cache.h b/lib/cache.h
index b081c04..2a651f0 100644
--- a/lib/cache.h
+++ b/lib/cache.h
@@ -33,5 +33,6 @@ public:
private:
std::map<std::string, Ptr> cached;
};
+// IWYU pragma: no_forward_declare Cache
#endif