A PainterAttributeDataFiller is the interfaceto fill the data held by a PainterAttributeData.
More...
#include <painter_attribute_data_filler.hpp>
◆ compute_sizes()
virtual void fastuidraw::PainterAttributeDataFiller::compute_sizes |
( |
unsigned int & |
number_attributes, |
|
|
unsigned int & |
number_indices, |
|
|
unsigned int & |
number_attribute_chunks, |
|
|
unsigned int & |
number_index_chunks, |
|
|
unsigned int & |
number_z_ranges |
|
) |
| const |
|
pure virtual |
To be implemented by a derived class to specify how many attributes, indices and chunks the PainterAttributeDataFiller will fill. All attributes and indices are on a common array. A chunk is a selection of attribute and index data. Each of the outputs is initialized as zero.
- Parameters
-
[out] | number_attributes | number of total attributes to be set |
[out] | number_indices | number of total indices to be set |
[out] | number_attribute_chunks | number of attribute chunks to be set |
[out] | number_index_chunks | number of index chunks to be set |
[out] | number_z_ranges | the number of z-ranges to be set; z-ranges of PainterAttribtueData are accessed by PainterAttributeData::z_ranges() and PainterAttributeData::z_range(). |
◆ fill_data()
To be implemented by a derived class to fill data.
- Parameters
-
attributes | location to which to place attributes |
indices | location to which to place indices |
attrib_chunks | location to which to fill attribute chunks; each element of attrib_chunks must be a sub-array of attributes. Initialized so that each element is an empty array. |
index_chunks | location to which to fill index chunks; each element of attrib_chunks must be a sub-array of indices. Initialized so that each element is an empty array. |
zranges | location to which to fill the z-range values (PainterAttributeData::z_ranges()). |
index_adjusts | location to which to fill the index adjust value (PainterAttributeData::index_adjust_chunks()). |
The documentation for this class was generated from the following file: