Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/include/BSE_node.h')
-rw-r--r--source/blender/include/BSE_node.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/source/blender/include/BSE_node.h b/source/blender/include/BSE_node.h
index 0cb8018c0d0..458887c91d1 100644
--- a/source/blender/include/BSE_node.h
+++ b/source/blender/include/BSE_node.h
@@ -30,27 +30,36 @@
#ifndef BSE_NODE_H
#define BSE_NODE_H
+/* ********** drawing sizes *********** */
#define NODE_DY 20
#define NODE_DYS 10
-#define NODE_SOCK 5
+#define NODE_SOCKSIZE 5
+#define BASIS_RAD 8.0f
+#define HIDDEN_RAD 15.0f
+
struct SpaceNode;
struct bNode;
-
-/* ************* button events *********** */
-
-#define B_NODE_EXEC 1
+struct Material;
/* ************* API for editnode.c *********** */
+void snode_tag_dirty(struct SpaceNode *snode);
+
+void snode_set_context(struct SpaceNode *snode);
void node_deselectall(struct SpaceNode *snode, int swap);
void node_transform_ext(int mode, int unused);
+void node_shader_default(struct Material *ma);
-/* ************* Shader nodes ***************** */
+/* ************* drawnode.c *************** */
+void node_draw_link(struct SpaceNode *snode, struct bNodeLink *link);
+
+void init_node_butfuncs(void);
-void node_shader_set_drawfunc(struct bNode *node);
+/* ************* Shader nodes ***************** */
+struct bNode *node_add_shadernode(struct SpaceNode *snode, int type, float locx, float locy);
#endif