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

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

namespace dp
{

IndexBuffer::IndexBuffer(uint16_t capacity)
  : GPUBuffer(GPUBuffer::IndexBuffer, sizeof(uint16_t), capacity)
{
}

void IndexBuffer::UploadData(uint16_t const * data, uint16_t size)
{
  GPUBuffer::UploadData((void *)data, size);
}

void IndexBuffer::UpdateData(uint16_t const * data, uint16_t size)
{
  GPUBuffer::Resize(size);
  UploadData(data, size);
}

} // namespace dp