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

index_buffer.hpp « drape - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 85509b85befb5d9766331ceb129b0db6740f9d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "drape/data_buffer.hpp"

namespace dp
{

class IndexBuffer : public DataBuffer
{
public:
  IndexBuffer(uint32_t capacity);

  /// check size of buffer and size of uploaded data
  void UploadData(void const * data, uint32_t size);
  /// resize buffer to new size, and discard old data
  void UpdateData(void const * data, uint32_t size);
};

} // namespace dp