Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | |
3 * | |
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. | |
8 * | |
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. | |
13 * | |
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. | |
17 * | |
18 * The Original Code is Copyright (C) 2010 Blender Foundation. | |
19 * All rights reserved. | |
20 * | |
21 * The Original Code is: all of this file. | |
22 * | |
23 * Contributor(s): none yet. | |
24 * | |
25 * ***** END GPL LICENSE BLOCK ***** | |
26 */ | |
27 | |
28 #ifndef __BKE_LINESTYLE_H__ | |
29 #define __BKE_LINESTYLE_H__ | |
30 | |
31 /** \file BKE_linestyle.h | |
32 * \ingroup bke | |
33 * \brief Blender kernel freestyle line style functionality. | |
34 */ | |
35 | |
36 #ifdef WITH_FREESTYLE | |
sergey.vfx
2013/03/18 16:38:04
Personally wouldn't add extra ifdefs, this file is
kjym3
2013/03/23 22:46:08
Done.
| |
37 | |
38 #include "DNA_linestyle_types.h" | |
39 | |
40 #define LS_MODIFIER_TYPE_COLOR 1 | |
41 #define LS_MODIFIER_TYPE_ALPHA 2 | |
42 #define LS_MODIFIER_TYPE_THICKNESS 3 | |
43 #define LS_MODIFIER_TYPE_GEOMETRY 4 | |
44 | |
45 struct Main; | |
46 struct Object; | |
47 | |
48 FreestyleLineStyle *FRS_new_linestyle(const char *name, struct Main *main); | |
sergey.vfx
2013/03/18 16:38:04
If it's blender kernel, prefix shall be BKE_. If o
kjym3
2013/03/23 22:46:08
The prefix was changed to BKE_. The header file h
| |
49 void FRS_free_linestyle(FreestyleLineStyle *linestyle); | |
50 FreestyleLineStyle *FRS_copy_linestyle(FreestyleLineStyle *linestyle); | |
51 | |
52 LineStyleModifier *FRS_add_linestyle_color_modifier(FreestyleLineStyle *linestyl e, int type); | |
53 LineStyleModifier *FRS_add_linestyle_alpha_modifier(FreestyleLineStyle *linestyl e, int type); | |
54 LineStyleModifier *FRS_add_linestyle_thickness_modifier(FreestyleLineStyle *line style, int type); | |
55 LineStyleModifier *FRS_add_linestyle_geometry_modifier(FreestyleLineStyle *lines tyle, int type); | |
56 | |
57 LineStyleModifier *FRS_copy_linestyle_color_modifier(FreestyleLineStyle *linesty le, LineStyleModifier *m); | |
58 LineStyleModifier *FRS_copy_linestyle_alpha_modifier(FreestyleLineStyle *linesty le, LineStyleModifier *m); | |
59 LineStyleModifier *FRS_copy_linestyle_thickness_modifier(FreestyleLineStyle *lin estyle, LineStyleModifier *m); | |
60 LineStyleModifier *FRS_copy_linestyle_geometry_modifier(FreestyleLineStyle *line style, LineStyleModifier *m); | |
61 | |
62 void FRS_remove_linestyle_color_modifier(FreestyleLineStyle *linestyle, LineStyl eModifier *modifier); | |
63 void FRS_remove_linestyle_alpha_modifier(FreestyleLineStyle *linestyle, LineStyl eModifier *modifier); | |
64 void FRS_remove_linestyle_thickness_modifier(FreestyleLineStyle *linestyle, Line StyleModifier *modifier); | |
65 void FRS_remove_linestyle_geometry_modifier(FreestyleLineStyle *linestyle, LineS tyleModifier *modifier); | |
66 | |
67 void FRS_move_linestyle_color_modifier(FreestyleLineStyle *linestyle, LineStyleM odifier *modifier, int direction); | |
68 void FRS_move_linestyle_alpha_modifier(FreestyleLineStyle *linestyle, LineStyleM odifier *modifier, int direction); | |
69 void FRS_move_linestyle_thickness_modifier(FreestyleLineStyle *linestyle, LineSt yleModifier *modifier, int direction); | |
70 void FRS_move_linestyle_geometry_modifier(FreestyleLineStyle *linestyle, LineSty leModifier *modifier, int direction); | |
71 | |
72 void FRS_list_modifier_color_ramps(FreestyleLineStyle *linestyle, ListBase *list base); | |
73 char *FRS_path_from_ID_to_color_ramp(FreestyleLineStyle *linestyle, ColorBand *c olor_ramp); | |
74 | |
75 void FRS_unlink_linestyle_target_object(FreestyleLineStyle *linestyle, struct Ob ject *ob); | |
76 | |
77 #endif /* WITH_FREESTYLE */ | |
78 | |
79 #endif /* __BKE_LINESTYLE_H__ */ | |
OLD | NEW |