summaryrefslogtreecommitdiff
path: root/servers/visual/shader_graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'servers/visual/shader_graph.h')
-rw-r--r--servers/visual/shader_graph.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/servers/visual/shader_graph.h b/servers/visual/shader_graph.h
index 07e4bb3540..41df0f60f1 100644
--- a/servers/visual/shader_graph.h
+++ b/servers/visual/shader_graph.h
@@ -43,7 +43,7 @@ public:
virtual void begin()=0;
virtual Error add_node(VS::ShaderNodeType p_type,int p_node_pos,int p_id,const Variant& p_param,const Vector<int>& p_in_connections,const Vector<int>& p_out_connections,const Vector<int>& p_out_connection_outputs)=0;
virtual void end()=0;
-
+
virtual ~ShaderCodeGenerator() {}
};
@@ -61,7 +61,7 @@ public:
private:
struct Node {
-
+
int16_t x,y;
VS::ShaderNodeType type;
Variant param;
@@ -74,7 +74,7 @@ private:
Map<int,Node> node_map;
List<Connection> connections;
-
+
public:
Error generate(ShaderCodeGenerator * p_generator) const;
@@ -87,7 +87,7 @@ public:
void node_set_pos(int p_id, int p_x,int p_y);
int node_get_pos_x(int p_id) const;
int node_get_pos_y(int p_id) const;
-
+
void get_node_list(List<int> *p_node_list) const;
void get_sorted_node_list(List<int> *p_node_list) const;
VS::ShaderNodeType node_get_type(int p_id) const;
@@ -95,14 +95,14 @@ public:
Error connect(int p_src_id,int p_src_slot, int p_dst_id,int p_dst_slot);
bool is_connected(int p_src_id,int p_src_slot, int p_dst_id,int p_dst_slot) const;
- void disconnect(int p_src_id,int p_src_slot, int p_dst_id,int p_dst_slot);
+ void disconnect(int p_src_id,int p_src_slot, int p_dst_id,int p_dst_slot);
void clear();
List<Connection> get_connection_list() const;
- ShaderGraph();
+ ShaderGraph();
~ShaderGraph();
};