2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License
4 * as published by the Free Software Foundation; either version 2
5 * of the License, or (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software Foundation,
14 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #ifndef __FRS_FREESTYLE_H__
18 #define __FRS_FREESTYLE_H__
20 /** \file \ingroup freestyle
27 struct FreestyleConfig;
28 struct FreestyleLineStyle;
33 struct FreestyleGlobals {
36 /* camera information */
43 extern struct FreestyleGlobals g_freestyle;
46 void FRS_initialize(void);
47 void FRS_set_context(struct bContext *C);
48 int FRS_is_freestyle_enabled(struct ViewLayer *view_layer);
49 void FRS_init_stroke_renderer(struct Render *re);
50 void FRS_begin_stroke_rendering(struct Render *re);
51 struct Render *FRS_do_stroke_rendering(struct Render *re, struct ViewLayer *view_layer, int render);
52 void FRS_end_stroke_rendering(struct Render *re);
53 void FRS_free_view_map_cache(void);
54 void FRS_composite_result(struct Render *re, struct ViewLayer *view_layer, struct Render *freestyle_render);
57 /* FreestyleConfig.linesets */
58 void FRS_copy_active_lineset(struct FreestyleConfig *config);
59 void FRS_paste_active_lineset(struct FreestyleConfig *config);
60 void FRS_delete_active_lineset(struct FreestyleConfig *config);
61 bool FRS_move_active_lineset(struct FreestyleConfig *config, int direction);
64 struct Material *FRS_create_stroke_material(struct Main *bmain, struct FreestyleLineStyle *linestyle);
70 #endif // __FRS_FREESTYLE_H__