MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ is_concatenable_topology()

constexpr bool MayaFlux::Portal::Graphics::is_concatenable_topology ( PrimitiveTopology  topology)
constexprnoexcept

Whether two adjacent spans of this topology can be concatenated without altering the primitives they assemble.

List topologies assemble each primitive from its own fixed-size group of consecutive vertices, so appending one span to another adds primitives and leaves existing ones untouched. Strip and fan topologies assemble each primitive from vertices shared with its predecessor, so concatenation fabricates an extra primitive spanning the join.

Definition at line 42 of file GraphicsUtils.hpp.

43{
44 return topology == PrimitiveTopology::POINT_LIST
45 || topology == PrimitiveTopology::LINE_LIST
46 || topology == PrimitiveTopology::TRIANGLE_LIST;
47}

References is_concatenable_topology(), LINE_LIST, POINT_LIST, and TRIANGLE_LIST.

Referenced by is_concatenable_topology().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: