diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-05 16:07:58 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-03-06 16:12:51 +0100 |
commit | 4737a45383911fcddf93f0a33e7e25246a5da07e (patch) | |
tree | a41a32f4d05297ede3c6d685cabf81a0f6dadcdc /src/mbgl/gfx | |
parent | f13c2b86e427e29a856ca8f0f79379203c61f431 (diff) | |
download | qtlocation-mapboxgl-4737a45383911fcddf93f0a33e7e25246a5da07e.tar.gz |
[core] move IndexBuffer to gfx namespace
Diffstat (limited to 'src/mbgl/gfx')
-rw-r--r-- | src/mbgl/gfx/index_buffer.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mbgl/gfx/index_buffer.hpp b/src/mbgl/gfx/index_buffer.hpp new file mode 100644 index 0000000000..ede949764f --- /dev/null +++ b/src/mbgl/gfx/index_buffer.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include <memory> + +namespace mbgl { +namespace gfx { + +class IndexBufferResource { +protected: + IndexBufferResource() = default; +public: + virtual ~IndexBufferResource() = default; +}; + +class IndexBuffer { +public: + std::size_t elements; + std::unique_ptr<const IndexBufferResource> resource; +}; + +} // namespace gfx +} // namespace mbgl |