Cogs.Core
LoftedCrossSectionsComponent.cpp
1#include "Types.h"
2
3#include "LoftedCrossSectionsComponent.h"
4
5using namespace Cogs::Reflection;
6
7void Cogs::Core::LoftedCrossSectionsComponent::registerType()
8{
9 static constexpr EnumeratorDef enumerators[] = {
10 { "Hollow", LoftedCrossSectionsComponent::Shape::Hollow },
11 { "Solid", LoftedCrossSectionsComponent::Shape::Solid },
12 { "Shell", LoftedCrossSectionsComponent::Shape::Shell },
13 };
14
15 TypeDatabase::createType<LoftedCrossSectionsComponent::Shape>()
16 .setEnumerators(enumerators);
17
18 Field fields[] = {
21 { "shape", &LoftedCrossSectionsComponent::shape },
22 };
23
24 TypeDatabase::createType<LoftedCrossSectionsComponent>()
25 .setBase<Component>()
26 .setFields(fields);
27}
Field definition describing a single data member of a data structure.
Definition: Field.h:68
Contains reflection support.
Definition: Component.h:11
bool screenAligned
Let open geometry be screen-aligned.
bool open
If true, cull the front of the shape such that the inside is visible.