|
Blender V4.3
|
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 595 of file FRS_freestyle.cpp.
| void FRS_composite_result | ( | struct Render * | re, |
| struct ViewLayer * | view_layer, | ||
| struct Render * | freestyle_render ) |
Definition at line 475 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, Freestyle::x, and y.
Referenced by FRS_do_stroke_rendering().
| void FRS_copy_active_lineset | ( | struct FreestyleConfig * | config | ) |
Definition at line 687 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 760 of file FRS_freestyle.cpp.
References Freestyle::BlenderStrokeRenderer::GetStrokeShader(), Material::id, linestyle, FreestyleLineStyle::nodetree, ID::us, and FreestyleLineStyle::use_nodes.
| void FRS_delete_active_lineset | ( | struct FreestyleConfig * | config | ) |
Definition at line 743 of file FRS_freestyle.cpp.
References BKE_freestyle_lineset_delete(), and BKE_freestyle_lineset_get_active().
Definition at line 597 of file FRS_freestyle.cpp.
References Freestyle::Controller::_ViewMap, BKE_scene_graph_update_for_newframe(), BLI_findstring(), Freestyle::Controller::CloseFile(), controller, DAG_EVAL_RENDER, DEG_get_evaluated_object(), DEG_get_evaluated_scene(), DEG_graph_free(), DEG_graph_new(), depsgraph, Freestyle::Controller::DrawStrokes(), 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, FreestyleGlobals::mv, ID::name, ViewLayer::name, offsetof, prepare(), FreestyleGlobals::proj, RE_FreeRender(), RE_GetCamera(), RE_GetCameraWindow(), Freestyle::Controller::RenderStrokes(), RPT_, FreestyleGlobals::scene, Render::scene, Freestyle::Controller::setRenderMonitor(), Freestyle::Controller::setViewMapCache(), Render::stats_draw(), Render::test_break(), unit_m4(), Scene::view_layers, FreestyleGlobals::viewpoint, and zero_v3().
| void FRS_end_stroke_rendering | ( | struct Render * | re | ) |
Definition at line 666 of file FRS_freestyle.cpp.
References Freestyle::Controller::Clear(), and controller.
| void FRS_exit | ( | void | ) |
Definition at line 117 of file FRS_freestyle.cpp.
References controller, pathconfig, and view.
Referenced by RE_FreeAllRender().
| void FRS_free_view_map_cache | ( | void | ) |
Definition at line 672 of file FRS_freestyle.cpp.
References controller, Freestyle::Controller::DeleteViewMap(), G, G_DEBUG_FREESTYLE, and printf.
| void FRS_init | ( | void | ) |
Definition at line 90 of file FRS_freestyle.cpp.
References BKE_callback_add(), BKE_CB_EVT_LOAD_POST, Freestyle::Controller::Clear(), controller, freestyle_is_initialized, g_freestyle, lineset_copied, load_post_callback_funcstore, pathconfig, FreestyleGlobals::scene, and Freestyle::Controller::setView().
Referenced by main().
| void FRS_init_stroke_renderer | ( | struct Render * | re | ) |
Definition at line 581 of file FRS_freestyle.cpp.
References controller, G, G_DEBUG_FREESTYLE, init_view(), and Freestyle::Controller::ResetRenderCount().
Definition at line 575 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 752 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 706 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 109 of file FRS_freestyle.cpp.
References controller, CTX_data_scene(), G, G_DEBUG_FREESTYLE, and Freestyle::Controller::setContext().
Referenced by main().
|
extern |
Definition at line 59 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().