diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-07 19:23:33 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-07 19:23:33 +0300 |
commit | 4990e4dd01f2b085f5d1842dfa31d79e4df92fbd (patch) | |
tree | 2e368d7e0c8c2e5d090e97c12a33e4514d15b8d4 /source/blender/nodes/function/node_function_util.hh | |
parent | ff97545c50f458a62a2ea412f8411f8bb34b9c1c (diff) |
Nodes: Generate multi-function network from node tree
This adds new callbacks to `bNodeSocketType` and `bNodeType`.
Those are used to generate a multi-function network from a node
tree. Later, this network is evaluated on e.g. particle data.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D8169
Diffstat (limited to 'source/blender/nodes/function/node_function_util.hh')
-rw-r--r-- | source/blender/nodes/function/node_function_util.hh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/source/blender/nodes/function/node_function_util.hh b/source/blender/nodes/function/node_function_util.hh new file mode 100644 index 00000000000..938cb5dd593 --- /dev/null +++ b/source/blender/nodes/function/node_function_util.hh @@ -0,0 +1,44 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef __NODE_FUNCTION_UTIL_H__ +#define __NODE_FUNCTION_UTIL_H__ + +#include <string.h> + +#include "BLI_float3.hh" +#include "BLI_utildefines.h" + +#include "MEM_guardedalloc.h" + +#include "DNA_node_types.h" + +#include "BKE_node.h" +#include "BKE_node_tree_multi_function.hh" + +#include "BLT_translation.h" + +#include "NOD_function.h" + +#include "node_util.h" + +#include "FN_multi_function_builder.hh" + +void fn_node_type_base( + struct bNodeType *ntype, int type, const char *name, short nclass, short flag); +bool fn_node_poll_default(struct bNodeType *ntype, struct bNodeTree *ntree); + +#endif /* __NODE_FUNCTION_UTIL_H__ */ |