summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/texture_pool.hpp
blob: 3981d98f083ba2f557b5d189bd3590505b94174c (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
26
#ifndef MBGL_UTIL_TEXTUREPOOL
#define MBGL_UTIL_TEXTUREPOOL

#include <mbgl/util/noncopyable.hpp>
#include <mbgl/gl/gl.hpp>

#include <set>

namespace mbgl {
namespace gl {

class TexturePool : private util::noncopyable {

public:
    GLuint getTextureID();
    void removeTextureID(GLuint texture_id);
    void clearTextureIDs();

private:
    std::set<GLuint> texture_ids;
};

} // namespace gl
} // namespace mbgl

#endif