mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03: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
18 lines
458 B
C++
18 lines
458 B
C++
#pragma once
|
|
|
|
#include "drape/data_buffer.hpp"
|
|
|
|
namespace dp
|
|
{
|
|
class IndexBuffer : public DataBuffer
|
|
{
|
|
public:
|
|
explicit IndexBuffer(uint32_t capacity);
|
|
|
|
// Check size of buffer and size of uploaded data.
|
|
void UploadData(ref_ptr<GraphicsContext> context, void const * data, uint32_t size);
|
|
// Resize buffer to new size, and discard old data.
|
|
void UpdateData(ref_ptr<GraphicsContext> context, void const * data, uint32_t size);
|
|
};
|
|
} // namespace dp
|