PainterAttributeData represents the attribute and index data ready to be consumed by a Painter. Data is organized into individual chuncks that can be drawn seperately.
More...
#include <painter_attribute_data.hpp>
PainterAttributeData represents the attribute and index data ready to be consumed by a Painter. Data is organized into individual chuncks that can be drawn seperately.
Definition at line 39 of file painter_attribute_data.hpp.
◆ PainterAttributeData()
fastuidraw::PainterAttributeData::PainterAttributeData |
( |
void |
| ) |
|
◆ attribute_data_chunk()
◆ attribute_data_chunks()
◆ index_adjust_chunk()
int fastuidraw::PainterAttributeData::index_adjust_chunk |
( |
unsigned int |
i | ) |
const |
Provided as an API conveniance to fetch the index adjust for the named chunk.
- Parameters
-
◆ index_adjust_chunks()
c_array<const int> fastuidraw::PainterAttributeData::index_adjust_chunks |
( |
void |
| ) |
const |
Returns the index adjust value for all chunks. The index adjust value is by how much to adjust the indices of an index chunk.
◆ index_data_chunk()
c_array<const PainterIndex> fastuidraw::PainterAttributeData::index_data_chunk |
( |
unsigned int |
i | ) |
const |
◆ index_data_chunks()
◆ largest_attribute_chunk()
unsigned int fastuidraw::PainterAttributeData::largest_attribute_chunk |
( |
void |
| ) |
const |
Returns the size of the largest attribute chunk.
◆ largest_index_chunk()
unsigned int fastuidraw::PainterAttributeData::largest_index_chunk |
( |
void |
| ) |
const |
Returns the size of the largest index chunk.
◆ non_empty_index_data_chunks()
c_array<const unsigned int> fastuidraw::PainterAttributeData::non_empty_index_data_chunks |
( |
void |
| ) |
const |
Returns an array that holds those value i for which index_data_chunk(i) is non-empty.
◆ set_data()
◆ z_range()
range_type<int> fastuidraw::PainterAttributeData::z_range |
( |
unsigned int |
i | ) |
const |
Provided as an API conveniance to fetch the named z-range value of z_ranges() or range_type(0, 0) if the index is larger then z_ranges().size().
- Parameters
-
◆ z_ranges()
c_array<const range_type<int> > fastuidraw::PainterAttributeData::z_ranges |
( |
void |
| ) |
const |
Returns the z-range of the data in an chunk. Recall that the z-value is used by Painter to perform occluding. When an item is to self occlude, z_ranges()[C] holds the relative z-ranges of the z-value emitted by the item's vertex shader.
The documentation for this class was generated from the following file: