mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
31 lines
519 B
C++
31 lines
519 B
C++
#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
|