Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_render.h
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
| void ED_render_engine_changed(struct Main *bmain, const bool update_scene_data); | void ED_render_engine_changed(struct Main *bmain, const bool update_scene_data); | ||||
| void ED_render_engine_area_exit(struct Main *bmain, struct ScrArea *area); | void ED_render_engine_area_exit(struct Main *bmain, struct ScrArea *area); | ||||
| void ED_render_view_layer_changed(struct Main *bmain, struct bScreen *screen); | void ED_render_view_layer_changed(struct Main *bmain, struct bScreen *screen); | ||||
| /* Callbacks handling data update events coming from depsgraph. */ | /* Callbacks handling data update events coming from depsgraph. */ | ||||
| void ED_render_id_flush_update(const struct DEGEditorUpdateContext *update_ctx, struct ID *id); | void ED_render_id_flush_update(const struct DEGEditorUpdateContext *update_ctx, struct ID *id); | ||||
| /** | |||||
| * Update all 3D viewport render and draw engines on changes to the scene. | |||||
| * This is called by the dependency graph when it detects changes. | |||||
| */ | |||||
| void ED_render_scene_update(const struct DEGEditorUpdateContext *update_ctx, const bool updated); | void ED_render_scene_update(const struct DEGEditorUpdateContext *update_ctx, const bool updated); | ||||
| /** | |||||
| * Update 3D viewport render or draw engine on changes to the scene or view settings. | |||||
| */ | |||||
| void ED_render_view3d_update(struct Depsgraph *depsgraph, | void ED_render_view3d_update(struct Depsgraph *depsgraph, | ||||
| struct wmWindow *window, | struct wmWindow *window, | ||||
| struct ScrArea *area, | struct ScrArea *area, | ||||
| const bool updated); | const bool updated); | ||||
| struct Scene *ED_render_job_get_scene(const struct bContext *C); | struct Scene *ED_render_job_get_scene(const struct bContext *C); | ||||
| struct Scene *ED_render_job_get_current_scene(const struct bContext *C); | struct Scene *ED_render_job_get_current_scene(const struct bContext *C); | ||||
| Show All 10 Lines | typedef enum ePreviewRenderMethod { | ||||
| PR_ICON_RENDER = 1, | PR_ICON_RENDER = 1, | ||||
| PR_NODE_RENDER = 2, | PR_NODE_RENDER = 2, | ||||
| PR_ICON_DEFERRED = 3, | PR_ICON_DEFERRED = 3, | ||||
| } ePreviewRenderMethod; | } ePreviewRenderMethod; | ||||
| void ED_preview_ensure_dbase(void); | void ED_preview_ensure_dbase(void); | ||||
| void ED_preview_free_dbase(void); | void ED_preview_free_dbase(void); | ||||
| /** | |||||
| * Check if \a id is supported by the automatic preview render. | |||||
| */ | |||||
| bool ED_preview_id_is_supported(const struct ID *id); | bool ED_preview_id_is_supported(const struct ID *id); | ||||
| void ED_preview_shader_job(const struct bContext *C, | void ED_preview_shader_job(const struct bContext *C, | ||||
| void *owner, | void *owner, | ||||
| struct ID *id, | struct ID *id, | ||||
| struct ID *parent, | struct ID *parent, | ||||
| struct MTex *slot, | struct MTex *slot, | ||||
| int sizex, | int sizex, | ||||
| Show All 31 Lines | |||||