summaryrefslogtreecommitdiff
path: root/include/mbgl/util/texturepool.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/util/texturepool.hpp')
-rw-r--r--include/mbgl/util/texturepool.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/mbgl/util/texturepool.hpp b/include/mbgl/util/texturepool.hpp
new file mode 100644
index 0000000000..566d8c1750
--- /dev/null
+++ b/include/mbgl/util/texturepool.hpp
@@ -0,0 +1,25 @@
+#ifndef MBGL_UTIL_TEXTUREPOOL
+#define MBGL_UTIL_TEXTUREPOOL
+
+#include <mbgl/util/noncopyable.hpp>
+#include <mbgl/platform/gl.hpp>
+
+#include <set>
+#include <mutex>
+
+namespace mbgl {
+
+class Texturepool : private util::noncopyable {
+
+public:
+ GLuint getTextureID();
+ void removeTextureID(GLuint texture_id);
+ void clearTextureIDs();
+
+private:
+ std::set<GLuint> texture_ids;
+};
+
+}
+
+#endif