Update to newest codegen, replace std::monostate with ghoul::Dictionary

This commit is contained in:
Alexander Bock
2021-03-17 21:26:57 +01:00
parent 07389bd6bf
commit e2c1414ba6
5 changed files with 8 additions and 5 deletions

View File

@@ -148,7 +148,8 @@ namespace {
struct [[codegen::Dictionary(RenderableTrail)]] Parameters {
// This object is used to compute locations along the path. Any Translation object
// can be used here
std::monostate translation [[codegen::reference("core_transform_translation")]];
ghoul::Dictionary translation
[[codegen::reference("core_transform_translation")]];
// [[codegen::verbatim(LineColorInfo.description)]]
glm::vec3 color [[codegen::color()]];

View File

@@ -41,7 +41,8 @@ namespace {
struct [[codegen::Dictionary(TimeFrameUnion)]] Parameters {
// [[codegen::verbatim(TimeFramesInfo.description)]]
std::vector<std::monostate> timeFrames [[codegen::reference("core_time_frame")]];
std::vector<ghoul::Dictionary> timeFrames
[[codegen::reference("core_time_frame")]];
};
#include "timeframeunion_codegen.cpp"
} // namespace

View File

@@ -172,7 +172,7 @@ namespace {
std::optional<BlendMode> blendMode;
// If the primary layer creation fails, this layer is used as a fallback
std::optional<std::monostate>
std::optional<ghoul::Dictionary>
fallback [[codegen::reference("globebrowsing_layer")]];
};
#include "layer_codegen.cpp"

View File

@@ -64,7 +64,8 @@ namespace {
std::optional<std::variant<std::vector<std::string>, std::string>> kernels;
// [[codegen::verbatim(TimeFrameInfo.description)]]
std::optional<std::monostate> timeFrame [[codegen::reference("core_time_frame")]];
std::optional<ghoul::Dictionary> timeFrame
[[codegen::reference("core_time_frame")]];
};
#include "spicerotation_codegen.cpp"
} // namespace