mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
46 lines
830 B
C++
46 lines
830 B
C++
#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
|