![]() |
NDEVR
API Documentation
|
Allows for the calculation of colors for any vertex given a Material and Geometry. More...
Public Member Functions | |
| VertexColorIterator (const Model &model, const Geometry &geo, const Material &material, const UVType &uv_type=UVType::e_KD) | |
| Constructs a VertexColorIterator from a Model, Geometry, and Material. | |
| BitFlag | flag (uint04 index) const |
| Retrieves the bit flag associated with a vertex at the given index. | |
| RGBColor | operator[] (uint04 index) const |
| Computes the color for a vertex at the given index. | |
| uint04 | size () const |
| Returns the number of vertices this iterator covers. | |
Allows for the calculation of colors for any vertex given a Material and Geometry.
Definition at line 13 of file VertexColorIterator.h.
| VertexColorIterator::VertexColorIterator | ( | const Model & | model, |
| const Geometry & | geo, | ||
| const Material & | material, | ||
| const UVType & | uv_type = UVType::e_KD ) |
Constructs a VertexColorIterator from a Model, Geometry, and Material.
| [in] | model | The model providing context for color computation. |
| [in] | geo | The geometry whose vertices will be colored. |
| [in] | material | The material used to determine vertex colors. |
| [in] | uv_type | The UV type channel to use for color lookup. Defaults to UVType::e_KD. |
References e_KD.
Retrieves the bit flag associated with a vertex at the given index.
| [in] | index | The vertex index within the geometry. |
Definition at line 37 of file VertexColorIterator.h.
References flag().
Referenced by flag().
Computes the color for a vertex at the given index.
| [in] | index | The vertex index within the geometry. |
|
inline |
Returns the number of vertices this iterator covers.
Definition at line 50 of file VertexColorIterator.h.