|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | FreestyleGlobals |
Functions | |
| void | FRS_init (void) |
| void | FRS_set_context (struct bContext *C) |
| int | FRS_is_freestyle_enabled (struct ViewLayer *view_layer) |
| void | FRS_init_stroke_renderer (struct Render *re) |
| void | FRS_begin_stroke_rendering (struct Render *re) |
| void | FRS_do_stroke_rendering (struct Render *re, struct ViewLayer *view_layer) |
| void | FRS_end_stroke_rendering (struct Render *re) |
| void | FRS_free_view_map_cache (void) |
| void | FRS_composite_result (struct Render *re, struct ViewLayer *view_layer, struct Render *freestyle_render) |
| void | FRS_exit (void) |
| void | FRS_copy_active_lineset (struct FreestyleConfig *config) |
| void | FRS_paste_active_lineset (struct FreestyleConfig *config) |
| void | FRS_delete_active_lineset (struct FreestyleConfig *config) |
| bool | FRS_move_active_lineset (struct FreestyleConfig *config, int direction) |
| struct Material * | FRS_create_stroke_material (struct Main *bmain, struct FreestyleLineStyle *linestyle) |
Variables | |
| struct FreestyleGlobals | g_freestyle |
| void FRS_begin_stroke_rendering | ( | struct Render * | re | ) |
Definition at line 589 of file FRS_freestyle.cpp.
| void FRS_composite_result | ( | struct Render * | re, |
| struct ViewLayer * | view_layer, | ||
| struct Render * | freestyle_render ) |
Definition at line 469 of file FRS_freestyle.cpp.
References blend_color_mix_float(), FreestyleConfig::flags, FREESTYLE_AS_RENDER_PASS, ViewLayer::freestyle_config, G, G_DEBUG_FREESTYLE, ViewLayer::name, RE_create_render_pass(), RE_GetRenderLayer(), RE_PASSNAME_COMBINED, RE_PASSNAME_FREESTYLE, RE_RenderLayerGetPass(), Render::rectx, RenderLayer::rectx, Render::recty, RenderLayer::recty, render_get_single_layer(), BaseRender::result, Render::viewname, x, and y.
Referenced by FRS_do_stroke_rendering().
| void FRS_copy_active_lineset | ( | struct FreestyleConfig * | config | ) |
Definition at line 681 of file FRS_freestyle.cpp.
References BKE_freestyle_lineset_get_active(), FreestyleLineSet::edge_types, FreestyleLineSet::exclude_edge_types, FreestyleLineSet::flags, FreestyleLineSet::group, lineset_buffer, lineset_copied, FreestyleLineSet::linestyle, FreestyleLineSet::name, FreestyleLineSet::qi, FreestyleLineSet::qi_end, FreestyleLineSet::qi_start, FreestyleLineSet::selection, and STRNCPY().
| struct Material * FRS_create_stroke_material | ( | struct Main * | bmain, |
| struct FreestyleLineStyle * | linestyle ) |
Definition at line 754 of file FRS_freestyle.cpp.
References Freestyle::BlenderStrokeRenderer::GetStrokeShader(), Material::id, FreestyleLineStyle::nodetree, ID::us, and FreestyleLineStyle::use_nodes.
| void FRS_delete_active_lineset | ( | struct FreestyleConfig * | config | ) |
Definition at line 737 of file FRS_freestyle.cpp.
References BKE_freestyle_lineset_delete(), and BKE_freestyle_lineset_get_active().
Definition at line 591 of file FRS_freestyle.cpp.
References BKE_scene_graph_update_for_newframe(), BLI_findstring(), controller, DAG_EVAL_RENDER, DEG_get_evaluated(), DEG_get_evaluated_scene(), DEG_graph_free(), DEG_graph_new(), depsgraph, BaseRender::display, FreestyleConfig::flags, ViewLayer::freestyle_config, FREESTYLE_VIEW_MAP_CACHE, FRS_composite_result(), G, G_DEBUG_FREESTYLE, g_freestyle, Render::i, Scene::id, RenderStats::infostr, Render::main, ID::name, name, ViewLayer::name, offsetof, prepare(), RE_FreeRender(), RE_GetCamera(), RE_GetCameraWindow(), RPT_, Render::scene, unit_m4(), Scene::view_layers, and zero_v3().
| void FRS_end_stroke_rendering | ( | struct Render * | re | ) |
Definition at line 660 of file FRS_freestyle.cpp.
References controller.
| void FRS_exit | ( | void | ) |
Definition at line 111 of file FRS_freestyle.cpp.
References controller, pathconfig, and view.
Referenced by RE_FreeAllRender().
| void FRS_free_view_map_cache | ( | void | ) |
Definition at line 666 of file FRS_freestyle.cpp.
References controller, G, G_DEBUG_FREESTYLE, and printf.
| void FRS_init | ( | void | ) |
Definition at line 84 of file FRS_freestyle.cpp.
References BKE_callback_add(), BKE_CB_EVT_LOAD_POST, controller, freestyle_is_initialized, g_freestyle, lineset_copied, load_post_callback_funcstore, pathconfig, and view.
Referenced by main().
| void FRS_init_stroke_renderer | ( | struct Render * | re | ) |
Definition at line 575 of file FRS_freestyle.cpp.
References controller, G, G_DEBUG_FREESTYLE, and init_view().
| int FRS_is_freestyle_enabled | ( | struct ViewLayer * | view_layer | ) |
Definition at line 569 of file FRS_freestyle.cpp.
References displayed_layer_count(), ViewLayer::flag, VIEW_LAYER_FREESTYLE, and VIEW_LAYER_RENDER.
| bool FRS_move_active_lineset | ( | struct FreestyleConfig * | config, |
| int | direction ) |
Reinsert the active lineset at an offset direction from current position.
Definition at line 746 of file FRS_freestyle.cpp.
References BKE_freestyle_lineset_get_active(), BLI_listbase_link_move(), and FreestyleConfig::linesets.
| void FRS_paste_active_lineset | ( | struct FreestyleConfig * | config | ) |
Definition at line 700 of file FRS_freestyle.cpp.
References BKE_freestyle_lineset_get_active(), BKE_freestyle_lineset_unique_name(), FreestyleLineSet::edge_types, FreestyleLineSet::exclude_edge_types, FreestyleLineSet::flags, FREESTYLE_LINESET_CURRENT, FreestyleLineSet::group, Collection::id, FreestyleLineStyle::id, id_us_min(), id_us_plus(), lineset_buffer, lineset_copied, FreestyleLineSet::linestyle, FreestyleLineSet::name, FreestyleLineSet::qi, FreestyleLineSet::qi_end, FreestyleLineSet::qi_start, FreestyleLineSet::selection, and STRNCPY().
| void FRS_set_context | ( | struct bContext * | C | ) |
Definition at line 103 of file FRS_freestyle.cpp.
References C, controller, CTX_data_scene(), G, and G_DEBUG_FREESTYLE.
Referenced by main().
|
extern |
Definition at line 53 of file FRS_freestyle.cpp.
Referenced by Freestyle::Controller::ComputeViewMap(), Freestyle::AppView::distanceToSceneCenter(), Freestyle_getCurrentScene(), FRS_do_stroke_rendering(), FRS_init(), Freestyle::GridHelpers::getDefaultViewProscenium(), init_view(), Freestyle::Controller::LoadMesh(), Freestyle::AppView::zfar(), and Freestyle::AppView::znear().