|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | SceneFPS_State |
Functions | |
| Scene * | ED_scene_add (Main *bmain, bContext *C, wmWindow *win, eSceneCopyMethod method) ATTR_NONNULL() |
| Scene * | ED_scene_sequencer_add (Main *bmain, bContext *C, eSceneCopyMethod method, bool assign_strip) |
| bool | ED_scene_delete (bContext *C, Main *bmain, Scene *scene) ATTR_NONNULL() |
| void | ED_scene_change_update (Main *bmain, Scene *scene, ViewLayer *layer) ATTR_NONNULL() |
| bool | ED_scene_view_layer_delete (Main *bmain, Scene *scene, ViewLayer *layer, ReportList *reports) ATTR_NONNULL(1 |
| bool void | ED_operatortypes_scene () |
Scene FPS Management | |
| void | ED_scene_fps_average_accumulate (Scene *scene, short fps_samples, double ltime) ATTR_NONNULL(1) |
| bool | ED_scene_fps_average_calc (const Scene *scene, SceneFPS_State *r_state) ATTR_NONNULL(1 |
| bool void | ED_scene_fps_average_clear (Scene *scene) ATTR_NONNULL(1) |
| bool void ED_operatortypes_scene | ( | ) |
Definition at line 429 of file scene_edit.cc.
References SCENE_OT_delete(), SCENE_OT_new(), SCENE_OT_new_sequencer(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
| Scene * ED_scene_add | ( | Main * | bmain, |
| bContext * | C, | ||
| wmWindow * | win, | ||
| eSceneCopyMethod | method ) |
Definition at line 115 of file scene_edit.cc.
References NC_SCENE, ND_SCENEBROWSE, scene_add(), WM_event_add_notifier(), WM_window_get_active_scene(), and WM_window_set_active_scene().
Referenced by scene_new_exec().
Depsgraph updates after scene becomes active in a window.
Definition at line 159 of file scene_edit.cc.
References BKE_scene_ensure_depsgraph(), BKE_scene_set_background(), DEG_graph_relations_update(), DEG_tag_on_visible_update(), depsgraph, ED_render_engine_changed(), and ED_update_for_newframe().
Referenced by WM_window_set_active_scene().
Definition at line 127 of file scene_edit.cc.
References BKE_id_delete(), ListBase::first, LISTBASE_FOREACH, wmWindowManager::windows, Main::wm, WM_jobs_kill_all_from_owner(), and WM_window_set_active_scene().
Referenced by scene_delete_exec(), blender::ed::outliner::scene_fn(), and sequencer_delete_strip_data().
Update frame rate info for viewport drawing.
| ltime | Time since the last update, compatible with the result of BLI_time_now_seconds. |
Definition at line 92 of file scene_fps.cc.
References ceilf, float, FPS, ScreenFrameRateInfo::fps_average, ScreenFrameRateInfo::fps_target, ScreenFrameRateInfo::fps_target_is_fractional, max_ii(), MEM_callocN, MEM_freeN(), ScreenFrameRateInfo::time_curr, ScreenFrameRateInfo::time_prev, ScreenFrameRateInfo::times_fps_num, and ScreenFrameRateInfo::times_fps_num_set.
Referenced by screen_animation_step_invoke().
| bool ED_scene_fps_average_calc | ( | const Scene * | scene, |
| SceneFPS_State * | r_state ) |
Calculate an average (if it's not already calculated).
state are initialized. Referenced by ED_scene_draw_fps().
| bool void ED_scene_fps_average_clear | ( | Scene * | scene | ) |
Clear run-time data for accumulating animation playback average times.
Definition at line 71 of file scene_fps.cc.
References BLI_assert, MEM_freeN(), ScreenFrameRateInfo::times_fps, ScreenFrameRateInfo::times_fps_num_set, ScreenFrameRateInfo::times_fps_sum, and FrameSample::value.
Referenced by ED_screen_animation_play().
| Scene * ED_scene_sequencer_add | ( | Main * | bmain, |
| bContext * | C, | ||
| eSceneCopyMethod | method, | ||
| bool | assign_strip ) |
Add a new scene in the sequence editor.
Special mode for adding a scene assigned to sequencer strip.
Definition at line 69 of file scene_edit.cc.
References Editing::act_seq, CTX_data_scene(), DEG_id_tag_update(), DEG_relations_tag_update(), Scene::ed, Scene::id, ID_RECALC_AUDIO, ID_RECALC_SEQUENCER_STRIPS, NC_SCENE, ND_SCENEBROWSE, ND_SEQUENCER, SCE_COPY_NEW, Sequence::scene, scene_add(), SEQ_relations_invalidate_cache_raw(), and WM_event_add_notifier().
Referenced by scene_new_sequencer_exec(), and sequencer_add_scene_strip_new_exec().
| bool ED_scene_view_layer_delete | ( | Main * | bmain, |
| Scene * | scene, | ||
| ViewLayer * | layer, | ||
| ReportList * | reports ) |
Referenced by view_layer_remove_exec().