pandemonium_engine/modules/material_maker/nodes/sdf2d/sd_op_bool.h

43 lines
988 B
C++
Raw Normal View History

2022-06-17 21:38:22 +02:00
#ifndef MM_SD_OP_BOOL_H
#define MM_SD_OP_BOOL_H
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
#include "../mm_node.h"
#include "../mm_node_universal_property.h"
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
class MMSdOpBool : public MMNode {
GDCLASS(MMSdOpBool, MMNode);
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
public:
Ref<MMNodeUniversalProperty> get_input1();
void set_input1(const Ref<MMNodeUniversalProperty> &val);
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
Ref<MMNodeUniversalProperty> get_input2();
void set_input2(const Ref<MMNodeUniversalProperty> &val);
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
Ref<MMNodeUniversalProperty> get_output();
void set_output(const Ref<MMNodeUniversalProperty> &val);
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
int get_operation() const;
void set_operation(const int val);
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
void _init_properties();
void _register_methods(MMGraphNode *mm_graph_node);
Variant _get_property_value(const Vector2 &uv);
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
void on_input_changed();
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
MMSdOpBool();
~MMSdOpBool();
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
protected:
static void _bind_methods();
2022-06-16 15:29:08 +02:00
2022-06-17 21:38:22 +02:00
Ref<MMNodeUniversalProperty> input1;
Ref<MMNodeUniversalProperty> input2;
Ref<MMNodeUniversalProperty> output;
2022-12-22 19:51:25 +01:00
//export(int, "Union,Subtraction,Intersection")
2022-06-17 21:38:22 +02:00
int operation;
2022-06-16 15:29:08 +02:00
};
#endif