Blender V5.0
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
11struct FreestyleConfig;
13struct Material;
14struct Render;
15
17 struct Scene *scene;
18
19 /* camera information */
20 float viewpoint[3];
21 float mv[4][4];
22 float proj[4][4];
23 int viewport[4];
24};
25
26extern struct FreestyleGlobals g_freestyle;
27
28/* Rendering */
29void FRS_init(void);
30void FRS_set_context(struct bContext *C);
31int FRS_is_freestyle_enabled(struct ViewLayer *view_layer);
32void FRS_init_stroke_renderer(struct Render *re);
33void FRS_begin_stroke_rendering(struct Render *re);
34void FRS_do_stroke_rendering(struct Render *re, struct ViewLayer *view_layer);
35void FRS_end_stroke_rendering(struct Render *re);
37void FRS_composite_result(struct Render *re,
38 struct ViewLayer *view_layer,
39 struct Render *freestyle_render);
40void FRS_exit(void);
41
42/* FreestyleConfig.linesets */
43void FRS_copy_active_lineset(struct FreestyleConfig *config);
44void FRS_paste_active_lineset(struct FreestyleConfig *config);
50bool FRS_move_active_lineset(struct FreestyleConfig *config, int direction);
51
52/* Testing */
53struct Material *FRS_create_stroke_material(struct Main *bmain,
54 struct FreestyleLineStyle *linestyle);
struct FreestyleGlobals g_freestyle
bool FRS_move_active_lineset(struct FreestyleConfig *config, int direction)
void FRS_set_context(struct bContext *C)
void FRS_init_stroke_renderer(struct Render *re)
void FRS_exit(void)
void FRS_end_stroke_rendering(struct Render *re)
void FRS_begin_stroke_rendering(struct Render *re)
void FRS_composite_result(struct Render *re, struct ViewLayer *view_layer, struct Render *freestyle_render)
int FRS_is_freestyle_enabled(struct ViewLayer *view_layer)
void FRS_do_stroke_rendering(struct Render *re, struct ViewLayer *view_layer)
void FRS_free_view_map_cache(void)
void FRS_paste_active_lineset(struct FreestyleConfig *config)
struct Material * FRS_create_stroke_material(struct Main *bmain, struct FreestyleLineStyle *linestyle)
void FRS_copy_active_lineset(struct FreestyleConfig *config)
void FRS_init(void)
void FRS_delete_active_lineset(struct FreestyleConfig *config)
#define C
Definition RandGen.cpp:29
float proj[4][4]
struct Scene * scene