summaryrefslogtreecommitdiff
path: root/include/llmr/util/texturepool.hpp
blob: 348d25d29a17645a04ffcec531111eee1029b0a2 (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 LLMR_UTIL_TEXTUREPOOL
#define LLMR_UTIL_TEXTUREPOOL

#include <llmr/util/noncopyable.hpp>
#include <llmr/platform/gl.hpp>

#include <set>
#include <mutex>

namespace llmr {

class Texturepool : private util::noncopyable {

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

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

}

#endif