Represents the interface for the backing store for index data of images.
More...
#include <image_atlas.hpp>
Represents the interface for the backing store for index data of images.
For example in GL, this can be a GL_TEXTURE_2D_ARRAY. An implementation of the class does NOT need to be thread safe because the user of the backing store (ImageAtlas) performs calls to the backing store behind its own mutex.
Definition at line 142 of file image_atlas.hpp.
◆ AtlasIndexBackingStoreBase() [1/2]
fastuidraw::AtlasIndexBackingStoreBase::AtlasIndexBackingStoreBase |
( |
ivec3 |
whl | ) |
|
|
explicitprotected |
Ctor.
- Parameters
-
whl | dimensions of the backing store |
◆ AtlasIndexBackingStoreBase() [2/2]
fastuidraw::AtlasIndexBackingStoreBase::AtlasIndexBackingStoreBase |
( |
int |
w, |
|
|
int |
h, |
|
|
int |
l |
|
) |
| |
|
protected |
Ctor.
- Parameters
-
w | width of the backing store |
h | height of the backing store |
l | number layers of the backing store |
◆ dimensions()
ivec3 fastuidraw::AtlasIndexBackingStoreBase::dimensions |
( |
void |
| ) |
const |
Returns the dimensions of the backing store (as passed in the ctor).
◆ flush()
virtual void fastuidraw::AtlasIndexBackingStoreBase::flush |
( |
void |
| ) |
|
|
pure virtual |
To be implemented by a derived class to flush set_data() to the backing store.
◆ resize()
void fastuidraw::AtlasIndexBackingStoreBase::resize |
( |
int |
new_num_layers | ) |
|
Resize the object by increasing the number of layers.
◆ resize_implement()
virtual void fastuidraw::AtlasIndexBackingStoreBase::resize_implement |
( |
int |
new_num_layers | ) |
|
|
protectedpure virtual |
To be implemented by a derived class to resize the object. The resize changes ONLY the number of layers of the object and only increases the value as well. When called, the return value of dimensions() is the size before the resize completes.
- Parameters
-
new_num_layers | new number of layers to which to resize the underlying store. |
◆ set_data()
virtual void fastuidraw::AtlasIndexBackingStoreBase::set_data |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
l, |
|
|
int |
w, |
|
|
int |
h, |
|
|
c_array< const ivec3 > |
data |
|
) |
| |
|
pure virtual |
To be implemented by a derived class to fill index data into the backing store. The index data passed references back into this AtlasIndexBackingStore.
- Parameters
-
x | horizontal position |
y | vertical position |
l | layer position |
w | width of data |
h | height of data |
data | list of tiles as returned by ImageAtlas::add_index_tile() |
The documentation for this class was generated from the following file: