GlyphAtlasStoreBase represents an interface to an aray of uint32_t values.
More...
#include <glyph_atlas.hpp>
GlyphAtlasStoreBase represents an interface to an aray of uint32_t values.
An example implementation in GL would be a buffer object that backs a single usamplerBuffer. An implementation of the class does NOT need to be thread safe because the user of the backing store, GlyphAtlas performs calls to the backing store behind its own mutex.
Definition at line 43 of file glyph_atlas.hpp.
◆ GlyphAtlasBackingStoreBase()
fastuidraw::GlyphAtlasBackingStoreBase::GlyphAtlasBackingStoreBase |
( |
unsigned int |
psize | ) |
|
|
explicitprotected |
◆ flush()
virtual void fastuidraw::GlyphAtlasBackingStoreBase::flush |
( |
void |
| ) |
|
|
pure virtual |
To be implemented by a derived class to flush contents to the backing store.
◆ resize()
void fastuidraw::GlyphAtlasBackingStoreBase::resize |
( |
unsigned int |
new_size | ) |
|
Resize the object to a larger size.
- Parameters
-
new_size | new number of uint32_t for the store to back |
◆ resize_implement()
virtual void fastuidraw::GlyphAtlasBackingStoreBase::resize_implement |
( |
unsigned int |
new_size | ) |
|
|
protectedpure virtual |
To be implemented by a derived class to resize the object. When called, the return value of size() is the size before the resize completes.
- Parameters
-
new_size | new number of int32_t for the store to back |
◆ set_values()
virtual void fastuidraw::GlyphAtlasBackingStoreBase::set_values |
( |
unsigned int |
location, |
|
|
c_array< const uint32_t > |
pdata |
|
) |
| |
|
pure virtual |
To be implemented by a derived class to load data into the store.
- Parameters
-
location | to load data |
pdata | data to load |
◆ size()
unsigned int fastuidraw::GlyphAtlasBackingStoreBase::size |
( |
void |
| ) |
|
Returns the number of uint32_t backed by the store.
The documentation for this class was generated from the following file: