2
* ***** BEGIN GPL LICENSE BLOCK *****
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
* The Original Code is Copyright (C) 2013 Blender Foundation
19
* All rights reserved.
21
* The Original Code is: all of this file.
23
* Contributor(s): none yet.
25
* ***** END GPL LICENSE BLOCK *****
28
#ifndef __BKE_FREESTYLE_H__
29
#define __BKE_FREESTYLE_H__
31
/** \file BKE_freestyle.h
35
#include "DNA_scene_types.h"
42
void BKE_freestyle_config_init(FreestyleConfig *config);
43
void BKE_freestyle_config_free(FreestyleConfig *config);
44
void BKE_freestyle_config_copy(FreestyleConfig *new_config, FreestyleConfig *config);
46
/* FreestyleConfig.modules */
47
void BKE_freestyle_module_add(FreestyleConfig *config);
48
void BKE_freestyle_module_delete(FreestyleConfig *config, FreestyleModuleConfig *module_conf);
49
void BKE_freestyle_module_move_up(FreestyleConfig *config, FreestyleModuleConfig *module_conf);
50
void BKE_freestyle_module_move_down(FreestyleConfig *config, FreestyleModuleConfig *module_conf);
52
/* FreestyleConfig.linesets */
53
FreestyleLineSet *BKE_freestyle_lineset_add(FreestyleConfig *config);
54
FreestyleLineSet *BKE_freestyle_lineset_get_active(FreestyleConfig *config);
55
short BKE_freestyle_lineset_get_active_index(FreestyleConfig *config);
56
void BKE_freestyle_lineset_set_active_index(FreestyleConfig *config, short index);
57
void BKE_freestyle_lineset_unique_name(FreestyleConfig *config, FreestyleLineSet *lineset);