feat: register parameter list
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -79,3 +79,4 @@ void GOP_house::cookOp(enzo::op::Context context)
|
||||
// }
|
||||
}
|
||||
|
||||
enzo::prm::Template GOP_house::parameterList[] = {};
|
||||
|
||||
@@ -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[];
|
||||
|
||||
};
|
||||
|
||||
@@ -38,3 +38,5 @@ void GopTransform::cookOp(enzo::op::Context context)
|
||||
|
||||
}
|
||||
|
||||
enzo::prm::Template GopTransform::parameterList[] = {};
|
||||
|
||||
|
||||
@@ -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[];
|
||||
|
||||
};
|
||||
|
||||
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user