void register_node_type_cmp_group(ListBase *lb) { static bNodeType ntype; node_type_base(&ntype, NODE_GROUP, "Group", NODE_CLASS_GROUP, NODE_OPTIONS|NODE_CONST_OUTPUT); node_type_socket_templates(&ntype, NULL, NULL); node_type_size(&ntype, 120, 60, 200); node_type_label(&ntype, node_group_label); node_type_init(&ntype, node_group_init); node_type_valid(&ntype, node_group_valid); node_type_template(&ntype, node_group_template); node_type_update(&ntype, NULL, node_group_verify); node_type_group_edit(&ntype, node_group_edit_get, node_group_edit_set, node_group_edit_clear); node_type_exec_new(&ntype, group_initexec, group_freeexec, group_execute); nodeRegisterType(lb, &ntype); }
void register_node_type_cmp_whileloop(ListBase *lb) { static bNodeType ntype; node_type_base(&ntype, NODE_WHILELOOP, "While", NODE_CLASS_GROUP, NODE_OPTIONS); node_type_socket_templates(&ntype, NULL, NULL); node_type_size(&ntype, 120, 60, 200); node_type_label(&ntype, node_group_label); node_type_init(&ntype, node_whileloop_init); node_type_valid(&ntype, node_group_valid); node_type_template(&ntype, node_whileloop_template); node_type_update(&ntype, NULL, node_group_verify); node_type_tree(&ntype, node_whileloop_init_tree, node_loop_update_tree); node_type_group_edit(&ntype, node_group_edit_get, node_group_edit_set, node_group_edit_clear); node_type_exec_new(&ntype, group_initexec, group_freeexec, whileloop_execute); nodeRegisterType(lb, &ntype); }
void register_node_type_sh_forloop(bNodeTreeType *ttype) { static bNodeType ntype; node_type_base(ttype, &ntype, NODE_FORLOOP, "For", NODE_CLASS_GROUP, NODE_OPTIONS); node_type_socket_templates(&ntype, NULL, NULL); node_type_size(&ntype, 120, 60, 200); node_type_label(&ntype, node_group_label); node_type_init(&ntype, node_forloop_init); node_type_valid(&ntype, node_group_valid); node_type_template(&ntype, node_forloop_template); node_type_update(&ntype, NULL, node_group_verify); node_type_tree(&ntype, node_forloop_init_tree, node_loop_update_tree); node_type_group_edit(&ntype, node_group_edit_get, node_group_edit_set, node_group_edit_clear); node_type_exec_new(&ntype, group_initexec, group_freeexec, forloop_execute); nodeRegisterType(ttype, &ntype); }