OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::shapes::vertex_attrib_variant Class Reference

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.
 

Detailed Description

Class designating an vertex attribute variant in a shape generator.

See also
vertex_attrib_variants

Member Function Documentation

◆ operator bool()

constexpr eagine::shapes::vertex_attrib_variant::operator bool ( ) const
inlineexplicitconstexprnoexcept

Check if the stored index is valid.

See also
has_valid_index

The documentation for this class was generated from the following file:

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).