summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/texture_pool.hpp
blob: 9ab7d14ef6a66ce4f1c8c014599c1a06235e6f58 (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
#pragma once

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

#include <memory>

namespace mbgl {
namespace gl {

class TexturePool : private util::noncopyable {
public:
    TexturePool();
    ~TexturePool();

    GLuint getTextureID(gl::ObjectStore&);
    void releaseTextureID(GLuint&);

private:
    class Impl;
    const std::unique_ptr<Impl> impl;
};

} // namespace gl
} // namespace mbgl