mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-30 15:47:12 +01:00
49 lines
950 B
C++
49 lines
950 B
C++
#ifndef SDF3D_OP_BOOL_H
|
|
#define SDF3D_OP_BOOL_H
|
|
|
|
|
|
class Sdf3dOpBool : public MMNode {
|
|
GDCLASS(Sdf3dOpBool, MMNode);
|
|
|
|
public:
|
|
|
|
Ref<Resource> get_input1();
|
|
void set_input1(const Ref<Resource> &val);
|
|
|
|
Ref<Resource> get_input2();
|
|
void set_input2(const Ref<Resource> &val);
|
|
|
|
Ref<Resource> get_output();
|
|
void set_output(const Ref<Resource> &val);
|
|
|
|
int get_operation() const;
|
|
void set_operation(const int val);
|
|
|
|
void _init_properties();
|
|
void _register_methods(const Variant &mm_graph_node);
|
|
Vector2 _get_property_value_sdf3d(const Vector3 &uv3);
|
|
int get_operation();
|
|
void set_operation(const int val);
|
|
void on_input_changed();
|
|
|
|
Sdf3dOpBool();
|
|
~Sdf3dOpBool();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
//tool
|
|
//export(Resource)
|
|
Ref<Resource> input1;
|
|
//export(Resource)
|
|
Ref<Resource> input2;
|
|
//export(Resource)
|
|
Ref<Resource> output;
|
|
//export(int, "Union,Substraction,Intersection")
|
|
int operation = 0;
|
|
//operation
|
|
};
|
|
|
|
|
|
#endif
|