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
5
#include "
MayaFlux/Kakshya/NDData/VertexFormats.hpp
"
6
#include "
MayaFlux/Portal/Graphics/GraphicsUtils.hpp
"
7
#include "
MayaFlux/Transitive/Reflect/RecordBinding.hpp
"
8
9
namespace
MayaFlux::Portal::Forma
{
10
11
/**
12
* @struct VertexGeometryInputs
13
* @brief A topology and ordered vertices in the Kakshya::Vertex field format.
14
*/
15
struct
VertexGeometryInputs
{
16
Graphics::PrimitiveTopology
topology
{
Graphics::PrimitiveTopology::POINT_LIST
};
17
std::vector<Kakshya::Vertex>
vertices
;
18
};
19
20
MF_DESCRIBE
(
VertexGeometryInputs
)
21
22
/**
23
* @struct PolygonHole
24
* @brief One inner ring cut out of an outline, with optional per point colors.
25
*/
26
struct
PolygonHole
{
27
std::vector<glm::vec2>
points
;
28
std::vector<glm::vec4>
colors
;
29
};
30
31
MF_DESCRIBE
(
PolygonHole
)
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
*/
43
struct
PolygonInputs
{
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
55
MF_DESCRIBE
(
PolygonInputs
)
56
57
}
58
59
#include "
StaticGeometryInputs.describe.hpp
"
MF_DESCRIBE
#define MF_DESCRIBE(...)
Requests a generated member description for a struct at namespace scope.
Definition
Describe.hpp:14
GraphicsUtils.hpp
PlacementInputs.hpp
RecordBinding.hpp
StaticGeometryInputs.describe.hpp
VertexFormats.hpp
MayaFlux::Portal::Forma
Definition
Bridge.cpp:16
MayaFlux::Portal::Graphics::PrimitiveTopology
PrimitiveTopology
Vertex assembly primitive topology.
Definition
GraphicsUtils.hpp:24
MayaFlux::Portal::Graphics::PrimitiveTopology::POINT_LIST
@ POINT_LIST
Definition
GraphicsUtils.hpp:25
MayaFlux::Portal::Forma::PolygonHole::colors
std::vector< glm::vec4 > colors
Definition
StaticGeometryInputs.hpp:28
MayaFlux::Portal::Forma::PolygonHole::points
std::vector< glm::vec2 > points
Definition
StaticGeometryInputs.hpp:27
MayaFlux::Portal::Forma::PolygonHole
One inner ring cut out of an outline, with optional per point colors.
Definition
StaticGeometryInputs.hpp:26
MayaFlux::Portal::Forma::PolygonInputs::holes
std::vector< PolygonHole > holes
Definition
StaticGeometryInputs.hpp:52
MayaFlux::Portal::Forma::PolygonInputs::on
bool on
Definition
StaticGeometryInputs.hpp:49
MayaFlux::Portal::Forma::PolygonInputs::color
glm::vec4 color
Definition
StaticGeometryInputs.hpp:46
MayaFlux::Portal::Forma::PolygonInputs::containment
std::string containment
Definition
StaticGeometryInputs.hpp:50
MayaFlux::Portal::Forma::PolygonInputs::interaction
std::string interaction
Definition
StaticGeometryInputs.hpp:51
MayaFlux::Portal::Forma::PolygonInputs::thickness
float thickness
Definition
StaticGeometryInputs.hpp:48
MayaFlux::Portal::Forma::PolygonInputs::active
std::optional< glm::vec4 > active
Definition
StaticGeometryInputs.hpp:47
MayaFlux::Portal::Forma::PolygonInputs::colors
std::vector< glm::vec4 > colors
Definition
StaticGeometryInputs.hpp:45
MayaFlux::Portal::Forma::PolygonInputs::points
std::vector< glm::vec2 > points
Definition
StaticGeometryInputs.hpp:44
MayaFlux::Portal::Forma::PolygonInputs
An outline in unit space, filled or stroked, with a bool state.
Definition
StaticGeometryInputs.hpp:43
MayaFlux::Portal::Forma::VertexGeometryInputs::vertices
std::vector< Kakshya::Vertex > vertices
Definition
StaticGeometryInputs.hpp:17
MayaFlux::Portal::Forma::VertexGeometryInputs::topology
Graphics::PrimitiveTopology topology
Definition
StaticGeometryInputs.hpp:16
MayaFlux::Portal::Forma::VertexGeometryInputs
A topology and ordered vertices in the Kakshya::Vertex field format.
Definition
StaticGeometryInputs.hpp:15
src
MayaFlux
Portal
Forma
Manifest
StaticGeometryInputs.hpp
Generated by
1.15.0