mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-28 14:47:13 +01:00
Mark quite a few methods as virtual in MMNode.
This commit is contained in:
parent
c028c76499
commit
d939ab54c7
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
#include "mm_node.h"
|
#include "mm_node.h"
|
||||||
|
|
||||||
|
#include "../editor/mm_graph_node.h"
|
||||||
#include "core/object.h"
|
#include "core/object.h"
|
||||||
#include "mm_material.h"
|
#include "mm_material.h"
|
||||||
#include "mm_node_universal_property.h"
|
#include "mm_node_universal_property.h"
|
||||||
@ -146,10 +147,14 @@ void MMNode::register_methods(Node *mm_graph_node) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MMNode::_register_methods_bind(Node *mm_graph_node) {
|
void MMNode::_register_methods_bind(Node *mm_graph_node) {
|
||||||
_register_methods(mm_graph_node);
|
MMGraphNode *gn = Object::cast_to<MMGraphNode>(mm_graph_node);
|
||||||
|
|
||||||
|
ERR_FAIL_COND(!gn);
|
||||||
|
|
||||||
|
_register_methods(gn);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MMNode::_register_methods(Node *mm_graph_node) {
|
void MMNode::_register_methods(MMGraphNode *mm_graph_node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MMNode::register_input_property(const Ref<MMNodeUniversalProperty> &p_prop) {
|
void MMNode::register_input_property(const Ref<MMNodeUniversalProperty> &p_prop) {
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
class Node;
|
class Node;
|
||||||
class MMMaterial;
|
class MMMaterial;
|
||||||
class MMNodeUniversalProperty;
|
class MMNodeUniversalProperty;
|
||||||
|
class MMGraphNode;
|
||||||
|
|
||||||
class MMNode : public Resource {
|
class MMNode : public Resource {
|
||||||
GDCLASS(MMNode, Resource);
|
GDCLASS(MMNode, Resource);
|
||||||
@ -32,20 +33,20 @@ public:
|
|||||||
void set_dirty(const bool val);
|
void set_dirty(const bool val);
|
||||||
|
|
||||||
bool render(const Ref<MMMaterial> &material);
|
bool render(const Ref<MMMaterial> &material);
|
||||||
void _render(const Ref<MMMaterial> &material);
|
virtual void _render(const Ref<MMMaterial> &material);
|
||||||
|
|
||||||
Ref<Image> render_image(const Ref<MMMaterial> &material);
|
Ref<Image> render_image(const Ref<MMMaterial> &material);
|
||||||
Ref<Image> _render_image(const Ref<MMMaterial> &material);
|
virtual Ref<Image> _render_image(const Ref<MMMaterial> &material);
|
||||||
|
|
||||||
Color get_value_for(const Vector2 &uv, const int pseed);
|
Color get_value_for(const Vector2 &uv, const int pseed);
|
||||||
Color _get_value_for(const Vector2 &uv, const int pseed);
|
virtual Color _get_value_for(const Vector2 &uv, const int pseed);
|
||||||
|
|
||||||
void init_properties();
|
void init_properties();
|
||||||
void _init_properties();
|
virtual void _init_properties();
|
||||||
|
|
||||||
void register_methods(Node *mm_graph_node);
|
void register_methods(Node *mm_graph_node);
|
||||||
void _register_methods_bind(Node *mm_graph_node);
|
virtual void _register_methods_bind(Node *mm_graph_node);
|
||||||
void _register_methods(Node *mm_graph_node);
|
virtual void _register_methods(MMGraphNode *mm_graph_node);
|
||||||
|
|
||||||
void register_input_property(const Ref<MMNodeUniversalProperty> &prop);
|
void register_input_property(const Ref<MMNodeUniversalProperty> &prop);
|
||||||
void unregister_input_property(const Ref<MMNodeUniversalProperty> &prop);
|
void unregister_input_property(const Ref<MMNodeUniversalProperty> &prop);
|
||||||
|
Loading…
Reference in New Issue
Block a user