Blender V5.3
FRS_freestyle.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11namespace blender {
12
13struct FreestyleConfig;
15struct Material;
16struct Render;
17
19 struct Scene *scene;
20
21 /* camera information */
22 float viewpoint[3];
23 float mv[4][4];
24 float proj[4][4];
25 int viewport[4];
26};
27
28extern struct FreestyleGlobals g_freestyle;
29
30/* Rendering */
31void FRS_init(void);
32void FRS_set_context(struct bContext *C);
33int FRS_is_freestyle_enabled(struct ViewLayer *view_layer);
34void FRS_init_stroke_renderer(struct Render *re);
35void FRS_begin_stroke_rendering(struct Render *re);
36void FRS_do_stroke_rendering(struct Render *re, struct ViewLayer *view_layer);
37void FRS_end_stroke_rendering(struct Render *re);
39void FRS_composite_result(struct Render *re,
40 struct ViewLayer *view_layer,
41 struct Render *freestyle_render);
42void FRS_exit(void);
43
44/* FreestyleConfig.linesets */
45void FRS_copy_active_lineset(struct FreestyleConfig *config);
46void FRS_paste_active_lineset(struct FreestyleConfig *config);
52bool FRS_move_active_lineset(struct FreestyleConfig *config, int direction);
53
54/* Testing */
55struct Material *FRS_create_stroke_material(struct Main *bmain,
56 struct FreestyleLineStyle *linestyle);
57
58} // namespace blender
#define C
Definition RandGen.cpp:29
BMesh Iterators.
int FRS_is_freestyle_enabled(struct ViewLayer *view_layer)
void FRS_delete_active_lineset(struct FreestyleConfig *config)
void FRS_free_view_map_cache(void)
struct FreestyleGlobals g_freestyle
bool FRS_move_active_lineset(struct FreestyleConfig *config, int direction)
void FRS_end_stroke_rendering(struct Render *re)
void FRS_init_stroke_renderer(struct Render *re)
void FRS_set_context(struct bContext *C)
void FRS_do_stroke_rendering(struct Render *re, struct ViewLayer *view_layer)
void FRS_exit(void)
void FRS_init(void)
void FRS_begin_stroke_rendering(struct Render *re)
void FRS_composite_result(struct Render *re, struct ViewLayer *view_layer, struct Render *freestyle_render)
void FRS_copy_active_lineset(struct FreestyleConfig *config)
void FRS_paste_active_lineset(struct FreestyleConfig *config)
struct Material * FRS_create_stroke_material(struct Main *bmain, struct FreestyleLineStyle *linestyle)