summaryrefslogtreecommitdiff
path: root/src/mbgl/util/texture_pool.hpp
blob: 95d918c237f56eb2f3e9fabf7878631af89640b1 (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;
};

}

#endif