mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 12:59:07 -06:00
Update to newest codegen, replace std::monostate with ghoul::Dictionary
This commit is contained in:
@@ -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()]];
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Submodule support/coding/codegen updated: 1251be9728...b3c0a745fa
Reference in New Issue
Block a user