|
Blender V4.3
|
Enumerations | |
| enum class | eDRWColorManagementType { ViewTransform = 0 , ViewTransformAndLook , UseRenderSettings } |
Functions | |
| static float | dither_get (eDRWColorManagementType color_management_type, const Scene &scene) |
| static eDRWColorManagementType | drw_color_management_type_for_v3d (const Scene &scene, const View3D &v3d) |
| static eDRWColorManagementType | drw_color_management_type_for_space_image (const SpaceImage &sima) |
| static eDRWColorManagementType | drw_color_management_type_for_space_node (Main &bmain, const SpaceNode &snode) |
| static eDRWColorManagementType | drw_color_management_type_get (Main *bmain, const Scene &scene, const View3D *v3d, const SpaceLink *space_data) |
| static void | viewport_settings_apply (GPUViewport &viewport, const Scene &scene, const eDRWColorManagementType color_management_type) |
| static void | viewport_color_management_set (GPUViewport &viewport) |
|
strong |
| Enumerator | |
|---|---|
| ViewTransform | |
| ViewTransformAndLook | |
| UseRenderSettings | |
Definition at line 32 of file draw_color_management.cc.
|
static |
Definition at line 38 of file draw_color_management.cc.
References ELEM, UseRenderSettings, and ViewTransformAndLook.
Referenced by viewport_settings_apply().
|
static |
Definition at line 66 of file draw_color_management.cc.
References SpaceImage::flag, IMA_SRC_GENERATED, IMA_VIEW_AS_RENDER, SpaceImage::image, SI_SHOW_ALPHA, SI_SHOW_ZBUF, UseRenderSettings, and ViewTransform.
Referenced by drw_color_management_type_get().
|
static |
Definition at line 82 of file draw_color_management.cc.
References BKE_image_ensure_viewer(), ED_node_is_compositor(), SpaceNode::flag, IMA_TYPE_COMPOSITE, IMA_VIEW_AS_RENDER, SNODE_BACKDRAW, SNODE_SHOW_ALPHA, UseRenderSettings, and ViewTransform.
Referenced by drw_color_management_type_get().
|
static |
Definition at line 49 of file draw_color_management.cc.
References BKE_scene_uses_blender_workbench(), OB_MATERIAL, OB_RENDER, View3D::shading, View3DShading::type, UseRenderSettings, V3D_USES_SCENE_LIGHTS, V3D_USES_SCENE_WORLD, ViewTransform, and ViewTransformAndLook.
Referenced by drw_color_management_type_get().
|
static |
Definition at line 100 of file draw_color_management.cc.
References drw_color_management_type_for_space_image(), drw_color_management_type_for_space_node(), drw_color_management_type_for_v3d(), SPACE_IMAGE, SPACE_NODE, SpaceLink::spacetype, and UseRenderSettings.
Referenced by viewport_color_management_set().
|
static |
Definition at line 158 of file draw_color_management.cc.
References DEG_get_bmain(), depsgraph, DRWContextState::depsgraph, drw_color_management_type_get(), DRW_context_state_get(), DRWContextState::scene, DRWContextState::space_data, DRWContextState::v3d, and viewport_settings_apply().
Referenced by DRW_viewport_colormanagement_set().
|
static |
Definition at line 125 of file draw_color_management.cc.
References BKE_color_managed_view_settings_init_render(), dither_get(), GPU_viewport_colorspace_set(), ColorManagedViewSettings::look, STRNCPY, UseRenderSettings, ColorManagedViewSettings::view_transform, ViewTransform, and ViewTransformAndLook.
Referenced by viewport_color_management_set().