Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
30
libs/drape/index_buffer_mutator.hpp
Normal file
30
libs/drape/index_buffer_mutator.hpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include "drape/index_storage.hpp"
|
||||
#include "drape/pointers.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace dp
|
||||
{
|
||||
class VertexArrayBuffer;
|
||||
|
||||
class IndexBufferMutator
|
||||
{
|
||||
public:
|
||||
explicit IndexBufferMutator(uint32_t baseSize);
|
||||
|
||||
void AppendIndexes(void const * indexes, uint32_t count);
|
||||
|
||||
uint32_t GetCapacity() const;
|
||||
|
||||
private:
|
||||
friend class VertexArrayBuffer;
|
||||
void const * GetIndexes() const;
|
||||
uint32_t GetIndexCount() const;
|
||||
|
||||
private:
|
||||
IndexStorage m_buffer;
|
||||
uint32_t m_activeSize = 0;
|
||||
};
|
||||
} // namespace dp
|
||||
Loading…
Add table
Add a link
Reference in a new issue