diff options
Diffstat (limited to 'src/mbgl/util/texture_pool.hpp')
-rw-r--r-- | src/mbgl/util/texture_pool.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mbgl/util/texture_pool.hpp b/src/mbgl/util/texture_pool.hpp new file mode 100644 index 0000000000..95d918c237 --- /dev/null +++ b/src/mbgl/util/texture_pool.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 |