summaryrefslogtreecommitdiff
path: root/src/mbgl/util/texture_pool.hpp
blob: a980584c13cdf8e655b7431a559e7c2e561b57bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
};

} // namespace mbgl

#endif