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: 7572854d309447972bf6257809341e574c2f6044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "drape/gpu_buffer.hpp"

namespace dp
{

class IndexBuffer : public GPUBuffer
{
public:
  IndexBuffer(uint16_t capacity);

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

} // namespace dp