feat: register parameter list

This commit is contained in:
parker
2025-07-22 21:18:06 +01:00
parent 8ad6ecc299
commit c5f2dec008
14 changed files with 53 additions and 10 deletions

View File

@@ -17,6 +17,7 @@ add_library(${libName} SHARED
../Engine/Operator/Geometry.cpp
../Engine/Operator/Attribute.cpp
../Engine/Network/NetworkManager.cpp
../Engine/Parameter/Template.cpp
GopTransform.cpp
GopHouse.cpp
)

View File

@@ -79,3 +79,4 @@ void GOP_house::cookOp(enzo::op::Context context)
// }
}
enzo::prm::Template GOP_house::parameterList[] = {};

View File

@@ -1,5 +1,6 @@
#pragma once
#include "Engine/Operator/GeometryOpDef.h"
#include "Engine/Parameter/Template.h"
class GOP_house
: public enzo::nt::GeometryOpDef
@@ -12,4 +13,6 @@ public:
return new GOP_house(opId);
}
static BOOST_SYMBOL_EXPORT enzo::prm::Template parameterList[];
};

View File

@@ -38,3 +38,5 @@ void GopTransform::cookOp(enzo::op::Context context)
}
enzo::prm::Template GopTransform::parameterList[] = {};

View File

@@ -1,5 +1,6 @@
#pragma once
#include "Engine/Operator/GeometryOpDef.h"
#include "Engine/Parameter/Template.h"
class GopTransform
: public enzo::nt::GeometryOpDef
@@ -12,4 +13,6 @@ public:
return new GopTransform(opId);
}
static BOOST_SYMBOL_EXPORT enzo::prm::Template parameterList[];
};

View File

@@ -11,12 +11,14 @@ extern "C"
addOperator(
"transform",
"Transform",
&GopTransform::ctor
&GopTransform::ctor,
GopTransform::parameterList
);
addOperator(
"house",
"House",
&GOP_house::ctor
&GOP_house::ctor,
GopTransform::parameterList
);
}