Blender V4.3
ED_render.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2005 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_ID_enums.h"
12#include "DNA_material_types.h"
13#include "DNA_vec_types.h"
14
16struct Depsgraph;
17struct ID;
18struct MTex;
19struct Main;
20struct Render;
21struct Scene;
22struct ScrArea;
23struct bContext;
24struct bScreen;
25struct PreviewImage;
26struct uiPreview;
27struct ViewLayer;
28struct World;
29struct wmWindow;
30struct wmWindowManager;
31
32/* `render_ops.cc` */
33
35
36/* `render_update.cc` */
37
38void ED_render_engine_changed(Main *bmain, bool update_scene_data);
39void ED_render_engine_area_exit(Main *bmain, ScrArea *area);
40void ED_render_view_layer_changed(Main *bmain, bScreen *screen);
41
42/* Callbacks handling data update events coming from depsgraph. */
43
44void ED_render_id_flush_update(const DEGEditorUpdateContext *update_ctx, ID *id);
49void ED_render_scene_update(const DEGEditorUpdateContext *update_ctx, bool updated);
53void ED_render_view3d_update(Depsgraph *depsgraph, wmWindow *window, ScrArea *area, bool updated);
54
57
69
71const char *ED_preview_collection_name(ePreviewType pr_type);
72
73void ED_preview_ensure_dbase(bool with_gpencil);
75
79bool ED_preview_id_is_supported(const ID *id, const char **r_disabled_hint = nullptr);
80
82 Scene *scene,
83 ViewLayer *view_layer,
84 ePreviewType pr_type,
85 ePreviewRenderMethod pr_method);
87 const Scene *scene,
88 const World *world,
89 ID_Type id_type,
90 ePreviewRenderMethod pr_method);
91
93 void *owner,
94 ID *id,
95 ID *parent,
96 MTex *slot,
97 int sizex,
98 int sizey,
101 const bContext *C, Scene *scene, PreviewImage *prv_img, ID *id, enum eIconSizes icon_size);
103 const bContext *C, PreviewImage *prv_img, ID *id, enum eIconSizes icon_size, bool delay);
104
108
110
111void ED_preview_draw(
112 const bContext *C, void *idp, void *parentp, void *slotp, uiPreview *ui_preview, rcti *rect);
113
118void ED_previews_tag_dirty_by_id(const Main &bmain, const ID &id);
119
121
Enumerations for DNA_ID.h.
eIconSizes
ID_Type
void ED_render_clear_mtex_copybuf()
void ED_preview_ensure_dbase(bool with_gpencil)
World * ED_preview_prepare_world(Main *pr_main, const Scene *scene, const World *world, ID_Type id_type, ePreviewRenderMethod pr_method)
void ED_preview_free_dbase()
Scene * ED_render_job_get_scene(const bContext *C)
void ED_render_view3d_update(Depsgraph *depsgraph, wmWindow *window, ScrArea *area, bool updated)
void ED_render_engine_area_exit(Main *bmain, ScrArea *area)
void ED_render_internal_init()
void ED_preview_draw(const bContext *C, void *idp, void *parentp, void *slotp, uiPreview *ui_preview, rcti *rect)
void ED_operatortypes_render()
Definition render_ops.cc:21
Scene * ED_render_job_get_current_scene(const bContext *C)
bool ED_preview_id_is_supported(const ID *id, const char **r_disabled_hint=nullptr)
void ED_render_id_flush_update(const DEGEditorUpdateContext *update_ctx, ID *id)
ePreviewRenderMethod
Definition ED_render.hh:61
@ PR_ICON_RENDER
Definition ED_render.hh:65
@ PR_ICON_DEFERRED
Definition ED_render.hh:67
@ PR_BUTS_RENDER
Definition ED_render.hh:63
void ED_preview_restart_queue_work(const bContext *C)
void ED_render_engine_changed(Main *bmain, bool update_scene_data)
void ED_preview_restart_queue_add(ID *id, enum eIconSizes size)
void ED_preview_icon_job(const bContext *C, PreviewImage *prv_img, ID *id, enum eIconSizes icon_size, bool delay)
void ED_preview_icon_render(const bContext *C, Scene *scene, PreviewImage *prv_img, ID *id, enum eIconSizes icon_size)
bool ED_check_engine_supports_preview(const Scene *scene)
void ED_preview_kill_jobs(wmWindowManager *wm, Main *bmain)
void ED_preview_shader_job(const bContext *C, void *owner, ID *id, ID *parent, MTex *slot, int sizex, int sizey, ePreviewRenderMethod method)
void ED_previews_tag_dirty_by_id(const Main &bmain, const ID &id)
void ED_render_view_layer_changed(Main *bmain, bScreen *screen)
void ED_preview_restart_queue_free()
const char * ED_preview_collection_name(ePreviewType pr_type)
void ED_preview_set_visibility(Main *pr_main, Scene *scene, ViewLayer *view_layer, ePreviewType pr_type, ePreviewRenderMethod pr_method)
void ED_render_scene_update(const DEGEditorUpdateContext *update_ctx, bool updated)
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Gabor Generate Gabor noise Gradient Generate interpolated color and intensity values based on the input vector Magic Generate a psychedelic color texture Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between world
#define C
Definition RandGen.cpp:29
BPy_StructRNA * depsgraph
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
Definition DNA_ID.h:413