mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 13:27:57 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
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
This commit is contained in:
30
drape/index_buffer_mutator.hpp
Normal file
30
drape/index_buffer_mutator.hpp
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user