|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Buffers::FormaBuffer > MayaFlux::Portal::Forma::create_buffer | ( | std::shared_ptr< Core::Window > | window, |
| const V & | vertices, | ||
| Graphics::PrimitiveTopology | topology = Graphics::PrimitiveTopology::TRIANGLE_STRIP |
||
| ) |
Construct, register, and immediately submit a FormaBuffer from vertices.
Deduces capacity and topology from the vertex type. PointVertex yields POINT_LIST, LineVertex yields LINE_LIST, MeshVertex yields TRIANGLE_STRIP. Topology may be overridden explicitly for cases like LINE_STRIP or TRIANGLE_LIST from MeshVertex data.
| V | Vertex type: PointVertex, LineVertex, or MeshVertex. |
| window | Target window. |
| vertices | Vertices to submit immediately after construction. |
| topology | Primitive topology. Defaults to the canonical topology for V. |
Definition at line 216 of file Forma.hpp.
References MayaFlux::Portal::Forma::internal::create_buffer_impl().
Here is the call graph for this function: