Blender V4.3
ED_scene.hh File Reference
#include "BLI_compiler_attrs.h"
#include "BKE_scene.hh"

Go to the source code of this file.

Classes

struct  SceneFPS_State
 

Functions

SceneED_scene_add (Main *bmain, bContext *C, wmWindow *win, eSceneCopyMethod method) ATTR_NONNULL()
 
SceneED_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)
 

Function Documentation

◆ ED_operatortypes_scene()

bool void ED_operatortypes_scene ( )

◆ ED_scene_add()

Scene * ED_scene_add ( Main * bmain,
bContext * C,
wmWindow * win,
eSceneCopyMethod method )

◆ ED_scene_change_update()

void ED_scene_change_update ( Main * bmain,
Scene * scene,
ViewLayer * layer )

◆ ED_scene_delete()

bool ED_scene_delete ( bContext * C,
Main * bmain,
Scene * scene )
Note
Only call outside of area/region loops.
Returns
true if successful.

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().

◆ ED_scene_fps_average_accumulate()

void ED_scene_fps_average_accumulate ( Scene * scene,
short fps_samples,
double ltime )

◆ ED_scene_fps_average_calc()

bool ED_scene_fps_average_calc ( const Scene * scene,
SceneFPS_State * r_state )

Calculate an average (if it's not already calculated).

Returns
false on failure otherwise all values in state are initialized.

Referenced by ED_scene_draw_fps().

◆ ED_scene_fps_average_clear()

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().

◆ ED_scene_sequencer_add()

Scene * ED_scene_sequencer_add ( Main * bmain,
bContext * C,
eSceneCopyMethod method,
bool assign_strip )

◆ ED_scene_view_layer_delete()

bool ED_scene_view_layer_delete ( Main * bmain,
Scene * scene,
ViewLayer * layer,
ReportList * reports )

Referenced by view_layer_remove_exec().