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 * ***** END GPL LICENSE BLOCK *****
21 #ifndef __FRS_FREESTYLE_H__
22 #define __FRS_FREESTYLE_H__
24 /** \file blender/freestyle/FRS_freestyle.h
35 struct FreestyleConfig;
36 struct FreestyleLineStyle;
38 struct FreestyleGlobals {
41 /* camera information */
48 extern struct FreestyleGlobals g_freestyle;
51 void FRS_initialize(void);
52 void FRS_set_context(struct bContext *C);
53 void FRS_read_file(struct bContext *C);
54 int FRS_is_freestyle_enabled(struct ViewLayer *view_layer);
55 void FRS_init_stroke_renderer(struct Render *re);
56 void FRS_begin_stroke_rendering(struct Render *re);
57 struct Render *FRS_do_stroke_rendering(struct Render *re, struct ViewLayer *view_layer, int render);
58 void FRS_end_stroke_rendering(struct Render *re);
59 void FRS_free_view_map_cache(void);
60 void FRS_composite_result(struct Render *re, struct ViewLayer *view_layer, struct Render *freestyle_render);
63 /* FreestyleConfig.linesets */
64 void FRS_copy_active_lineset(struct FreestyleConfig *config);
65 void FRS_paste_active_lineset(struct FreestyleConfig *config);
66 void FRS_delete_active_lineset(struct FreestyleConfig *config);
67 bool FRS_move_active_lineset(struct FreestyleConfig *config, int direction);
70 struct Material *FRS_create_stroke_material(struct Main *bmain, struct FreestyleLineStyle *linestyle);
76 #endif // __FRS_FREESTYLE_H__