summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx/vertex_buffer.hpp
blob: 2ed1e627592d7f7ddbeb50ddbbd663b51779be0b (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
#pragma once

#include <memory>

namespace mbgl {
namespace gfx {

class VertexBufferResource {
protected:
    VertexBufferResource() = default;
public:
    virtual ~VertexBufferResource() = default;
};

// This class has a template argument that we use to specify the vertex type. It is not used by
// the implementation, but serves type checking purposes during build time.
template <class>
class VertexBuffer {
public:
    std::size_t elements;
    std::unique_ptr<const VertexBufferResource> resource;
};

} // namespace gfx
} // namespace mbgl