Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index_buffer_mutator.hpp « drape - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 160791baf0457f23b68337d943ff1365ff9184a3 (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
27
28
29
30
#pragma once

#include "drape/index_storage.hpp"
#include "drape/pointers.hpp"

#include <cstdint>

namespace dp
{
class VertexArrayBuffer;

class IndexBufferMutator
{
public:
  explicit IndexBufferMutator(uint32_t baseSize);

  void AppendIndexes(void const * indexes, uint32_t count);

  uint32_t GetCapacity() const;

private:
  friend class VertexArrayBuffer;
  void const * GetIndexes() const;
  uint32_t GetIndexCount() const;

private:
  IndexStorage m_buffer;
  uint32_t m_activeSize = 0;
};
}  // namespace dp