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

◆ slice()

MAYAFLUX_API FormaTarget MayaFlux::Portal::Forma::slice ( Surface & surface,
Graphics::PrimitiveTopology topology = Graphics::PrimitiveTopology::TRIANGLE_LIST )
nodiscard

A place for an element on surface to draw, with no buffer to make.

A new slice of topology in the buffer the surface's elements already share, drawn after the others. Hand it to Element::with_buffer for an element built by hand, or to a Form factory that draws a second shape, such as the handle of Geometry::stroke_slider. The slice carries the text slot, so Element::with_text works on it.

Parameters
surfaceSurface whose layer holds the shared buffer.
topologyTopology of the slice.

Definition at line 103 of file Forma.cpp.

104{
105 return internal::atelier().batch_slice(surface, topology);
106}
FormaTarget batch_slice(Surface &surface, Graphics::PrimitiveTopology topology)
A new slice of surface_batch(), of topology.
Definition Atelier.cpp:189
Atelier & atelier()
Accessor for the process-wide Atelier.
Definition Atelier.hpp:352

References MayaFlux::Portal::Forma::internal::atelier(), and MayaFlux::Portal::Forma::internal::Atelier::batch_slice().

Referenced by MayaFlux::Portal::Forma::internal::TextSlice::make().

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