Class designating an vertex attribute variant in a shape generator. More...
#include <eagine/shapes/vertex_attrib.hpp>
Public Member Functions | |
| constexpr | vertex_attrib_variant (vertex_attrib_kind a) |
| Construction from vertex attribute kind enumerator. | |
| constexpr | vertex_attrib_variant (vertex_attrib_kind a, span_size_t v) |
| Construction from vertex attribute kind enumerator and index. | |
| constexpr | vertex_attrib_variant (vertex_attrib_kind a, vertex_attrib_variant vav) |
| Construction from vertex attribute kind and another attribute variant. | |
| constexpr auto | attribute () const noexcept -> vertex_attrib_kind |
| Return the attribute kind. | |
| constexpr auto | has_valid_index () const noexcept |
| Check if the stored index is valid. | |
| constexpr | operator bool () const noexcept |
| Check if the stored index is valid. More... | |
| constexpr auto | index () const noexcept -> span_size_t |
| Returns the index of the attribute variant. | |
Friends | |
| constexpr friend auto | operator== (vertex_attrib_variant l, vertex_attrib_variant r) noexcept |
| Equality comparison. | |
| constexpr friend auto | operator!= (vertex_attrib_variant l, vertex_attrib_variant r) noexcept |
| Nonequality comparison. | |
| constexpr friend auto | operator< (vertex_attrib_variant l, vertex_attrib_variant r) noexcept |
| Less-than comparison. | |
| constexpr friend auto | operator== (vertex_attrib_variant l, vertex_attrib_kind r) noexcept |
| Variant and kind equality comparison. | |
| constexpr friend auto | operator!= (vertex_attrib_variant l, vertex_attrib_kind r) noexcept |
| Variant and kind nonequality comparison. | |
Class designating an vertex attribute variant in a shape generator.
|
inlineexplicitconstexprnoexcept |
Check if the stored index is valid.