Blender
V3.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_composite_result | ( | struct Render * | re, |
struct ViewLayer * | view_layer, | ||
struct Render * | freestyle_render | ||
) |
Definition at line 473 of file FRS_freestyle.cpp.
References blend_color_mix_float(), dest, 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_active_layer(), Render::result, src, Render::viewname, x, and y.
Referenced by FRS_do_stroke_rendering().
void FRS_copy_active_lineset | ( | struct FreestyleConfig * | config | ) |
Definition at line 693 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, and FreestyleLineSet::selection.
struct Material* FRS_create_stroke_material | ( | struct Main * | bmain, |
struct FreestyleLineStyle * | linestyle | ||
) |
Definition at line 766 of file FRS_freestyle.cpp.
References Material::id, linestyle, FreestyleLineStyle::nodetree, ID::us, and FreestyleLineStyle::use_nodes.
void FRS_delete_active_lineset | ( | struct FreestyleConfig * | config | ) |
Definition at line 749 of file FRS_freestyle.cpp.
References BKE_freestyle_lineset_delete(), and BKE_freestyle_lineset_get_active().
Definition at line 603 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, ViewLayer::name, ID::name, prepare(), FreestyleGlobals::proj, RE_FreeRender(), RE_GetCamera(), RE_GetCameraWindow(), Freestyle::Controller::RenderStrokes(), FreestyleGlobals::scene, Render::scene, Render::sdh, Freestyle::Controller::setRenderMonitor(), Freestyle::Controller::setViewMapCache(), Render::stats_draw, Render::tbh, Render::test_break, TIP_, unit_m4(), Scene::view_layers, FreestyleGlobals::viewpoint, and zero_v3().
Definition at line 672 of file FRS_freestyle.cpp.
References Freestyle::Controller::Clear(), and controller.
Definition at line 113 of file FRS_freestyle.cpp.
References controller, pathconfig, and view.
Referenced by RE_FreeAllRender().
Definition at line 678 of file FRS_freestyle.cpp.
References controller, Freestyle::Controller::DeleteViewMap(), G, and G_DEBUG_FREESTYLE.
Definition at line 86 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, Freestyle::Controller::setView(), and view.
Referenced by main().
Definition at line 585 of file FRS_freestyle.cpp.
References controller, G, G_DEBUG_FREESTYLE, init_view(), and Freestyle::Controller::ResetRenderCount().
int FRS_is_freestyle_enabled | ( | struct ViewLayer * | view_layer | ) |
Definition at line 579 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 758 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 712 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, and FreestyleLineSet::selection.
Definition at line 105 of file FRS_freestyle.cpp.
References C, controller, CTX_data_scene(), G, G_DEBUG_FREESTYLE, and Freestyle::Controller::setContext().
Referenced by main().
|
extern |
Definition at line 1 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().