MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
StaticGeometryInputs.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "PlacementInputs.hpp"
4
8
10
11/**
12 * @struct VertexGeometryInputs
13 * @brief A topology and ordered vertices in the Kakshya::Vertex field format.
14 */
19
21
22/**
23 * @struct PolygonHole
24 * @brief One inner ring cut out of an outline, with optional per point colors.
25 */
27 std::vector<glm::vec2> points;
28 std::vector<glm::vec4> colors;
29};
30
32
33/**
34 * @struct PolygonInputs
35 * @brief An outline in unit space, filled or stroked, with a bool state.
36 *
37 * points and the holes' points are x y pairs in the unit square, which the
38 * placement's rect maps onto the surface. colors is empty or one per point,
39 * and a hole follows its outline. A thickness above zero draws the rings as a
40 * line loop instead of filling them. While the state is true the active color
41 * replaces every vertex color. containment and interaction are names a table resolves.
42 */
44 std::vector<glm::vec2> points;
45 std::vector<glm::vec4> colors;
46 glm::vec4 color { 1.F };
47 std::optional<glm::vec4> active;
48 float thickness { 0.F };
49 bool on { false };
50 std::string containment;
51 std::string interaction;
52 std::vector<PolygonHole> holes;
53};
54
56
57}
58
#define MF_DESCRIBE(...)
Requests a generated member description for a struct at namespace scope.
Definition Describe.hpp:14
PrimitiveTopology
Vertex assembly primitive topology.
One inner ring cut out of an outline, with optional per point colors.
An outline in unit space, filled or stroked, with a bool state.
A topology and ordered vertices in the Kakshya::Vertex field format.