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

46 lines
830 B
C++
Raw Normal View History

2022-06-16 15:29:08 +02:00
#ifndef SD_SHAPE_BOX_H
#define SD_SHAPE_BOX_H
class SdShapeBox : public MMNode {
GDCLASS(SdShapeBox, MMNode);
public:
Ref<Resource> get_output();
void set_output(const Ref<Resource> &val);
Vector2 get_center();
void set_center(const Vector2 &val);
Vector2 get_size();
void set_size(const Vector2 &val);
void _init_properties();
void _register_methods(const Variant &mm_graph_node);
float _get_property_value(const Vector2 &uv);
Vector2 get_center();
void set_center(const Vector2 &val);
Vector2 get_size();
void set_size(const Vector2 &val);
SdShapeBox();
~SdShapeBox();
protected:
static void _bind_methods();
//tool
//export(Resource)
Ref<Resource> output;
//export(Vector2)
Vector2 center = Vector2(0, 0);
//export(Vector2)
Vector2 size = Vector2(0.3, 0.2);
//center
//size
};
#endif