blob: 9a63a44f45bc2fbaf90cfe43305255b01d459661 (
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
31
32
|
#pragma once
#include "drape/index_storage.hpp"
#include "drape/pointers.hpp"
#include "std/cstdint.hpp"
namespace dp
{
class VertexArrayBuffer;
class IndexBufferMutator
{
public:
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;
};
} // namespace dp
|