27#ifndef CACHED_CONTAINER_GPU_H_
28#define CACHED_CONTAINER_GPU_H_
58 void Unmap()
override;
Specialization of CACHED_CONTAINER that stores data in video memory via memory mapping.
void Map() override
Finish the vertices updates stage.
bool m_isMapped
Vertex buffer handle.
unsigned int GetBufferHandle() const override
Return handle to the vertex buffer.
virtual unsigned int AllItemsSize() const override
bool IsMapped() const override
Prepare the container for vertices updates.
bool defragmentResizeMemcpy(unsigned int aNewSize)
Flag saying if vertex buffer is currently mapped.
void Unmap() override
Finish the vertices updates stage.
bool defragmentResize(unsigned int aNewSize) override
Remove empty spaces between chunks and optionally resizes the container.
unsigned int m_glBufferHandle
Flag saying whether it is safe to use glCopyBufferSubData.
Class to store VERTEX instances with caching.
static constexpr unsigned int DEFAULT_SIZE
The Cairo implementation of the graphics abstraction layer.