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.
27 struct FreestyleConfig;
28 struct FreestyleLineStyle;
32 struct FreestyleGlobals {
35 /* camera information */
42 extern struct FreestyleGlobals g_freestyle;
46 void FRS_set_context(struct bContext *C);
47 int FRS_is_freestyle_enabled(struct ViewLayer *view_layer);
48 void FRS_init_stroke_renderer(struct Render *re);
49 void FRS_begin_stroke_rendering(struct Render *re);
50 void FRS_do_stroke_rendering(struct Render *re, struct ViewLayer *view_layer);
51 void FRS_end_stroke_rendering(struct Render *re);
52 void FRS_free_view_map_cache(void);
53 void FRS_composite_result(struct Render *re,
54 struct ViewLayer *view_layer,
55 struct Render *freestyle_render);
58 /* FreestyleConfig.linesets */
59 void FRS_copy_active_lineset(struct FreestyleConfig *config);
60 void FRS_paste_active_lineset(struct FreestyleConfig *config);
61 void FRS_delete_active_lineset(struct FreestyleConfig *config);
62 bool FRS_move_active_lineset(struct FreestyleConfig *config, int direction);
65 struct Material *FRS_create_stroke_material(struct Main *bmain,
66 struct FreestyleLineStyle *linestyle);