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