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
32 struct FreestyleConfig;
33 struct FreestyleLineStyle;
37 struct FreestyleGlobals {
40 /* camera information */
47 extern struct FreestyleGlobals g_freestyle;
50 void FRS_initialize(void);
51 void FRS_set_context(struct bContext *C);
52 void FRS_read_file(struct bContext *C);
53 int FRS_is_freestyle_enabled(struct SceneRenderLayer *srl);
54 void FRS_init_stroke_renderer(struct Render *re);
55 void FRS_begin_stroke_rendering(struct Render *re);
56 struct Render *FRS_do_stroke_rendering(struct Render *re, struct SceneRenderLayer *srl, int render);
57 void FRS_end_stroke_rendering(struct Render *re);
58 void FRS_free_view_map_cache(void);
59 void FRS_composite_result(struct Render *re, struct SceneRenderLayer *srl, struct Render *freestyle_render);
62 /* FreestyleConfig.linesets */
63 void FRS_copy_active_lineset(struct FreestyleConfig *config);
64 void FRS_paste_active_lineset(struct FreestyleConfig *config);
65 void FRS_delete_active_lineset(struct FreestyleConfig *config);
66 bool FRS_move_active_lineset(struct FreestyleConfig *config, int direction);
69 struct Material *FRS_create_stroke_material(struct Main *bmain, struct FreestyleLineStyle *linestyle);
75 #endif // __FRS_FREESTYLE_H__