|
Blender V4.3
|
#include "BKE_object_types.hh"#include "BKE_paint.hh"#include "BLI_math_color.h"#include "BLI_time.h"#include "DRW_render.hh"#include "ED_view3d.hh"#include "UI_resources.hh"#include "overlay_private.hh"Go to the source code of this file.
Macros | |
| #define | MODE_TRANSFER_FLASH_LENGTH 0.55f |
| #define | MODE_TRANSFER_FLASH_FADE 0.0f |
| #define | MODE_TRANSFER_FLASH_MAX_ALPHA 0.25f |
Functions | |
| void | OVERLAY_mode_transfer_cache_init (OVERLAY_Data *vedata) |
| static bool | mode_transfer_is_animation_running (const float anim_time) |
| static float | mode_transfer_alpha_for_action_slot_time_get (const float anim_time) |
| void | OVERLAY_mode_transfer_cache_populate (OVERLAY_Data *vedata, Object *ob) |
| void | OVERLAY_mode_transfer_draw (OVERLAY_Data *vedata) |
| void | OVERLAY_mode_transfer_infront_draw (OVERLAY_Data *vedata) |
| void | OVERLAY_mode_transfer_cache_finish (OVERLAY_Data *vedata) |
| #define MODE_TRANSFER_FLASH_FADE 0.0f |
Definition at line 39 of file overlay_mode_transfer.cc.
Referenced by mode_transfer_alpha_for_action_slot_time_get().
| #define MODE_TRANSFER_FLASH_LENGTH 0.55f |
Definition at line 37 of file overlay_mode_transfer.cc.
Referenced by mode_transfer_alpha_for_action_slot_time_get(), and mode_transfer_is_animation_running().
| #define MODE_TRANSFER_FLASH_MAX_ALPHA 0.25f |
Definition at line 40 of file overlay_mode_transfer.cc.
Referenced by mode_transfer_alpha_for_action_slot_time_get().
Definition at line 47 of file overlay_mode_transfer.cc.
References MODE_TRANSFER_FLASH_FADE, MODE_TRANSFER_FLASH_LENGTH, and MODE_TRANSFER_FLASH_MAX_ALPHA.
Referenced by OVERLAY_mode_transfer_cache_populate().
|
static |
Definition at line 42 of file overlay_mode_transfer.cc.
References MODE_TRANSFER_FLASH_LENGTH.
Referenced by OVERLAY_mode_transfer_cache_populate().
| void OVERLAY_mode_transfer_cache_finish | ( | OVERLAY_Data * | vedata | ) |
Definition at line 144 of file overlay_mode_transfer.cc.
References OVERLAY_PrivateData::any_animated, DRW_viewport_request_redraw(), OVERLAY_PrivateData::mode_transfer, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_finish().
| void OVERLAY_mode_transfer_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 23 of file overlay_mode_transfer.cc.
References BLI_time_now_seconds(), OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::mode_transfer, OVERLAY_PassList::mode_transfer_ps, OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, OVERLAY_Data::stl, and OVERLAY_PrivateData::time.
Referenced by OVERLAY_cache_init().
| void OVERLAY_mode_transfer_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 76 of file overlay_mode_transfer.cc.
References OVERLAY_PrivateData::any_animated, BKE_sculptsession_use_pbvh_draw(), DRW_Global::block_ubo, DRW_cache_object_surface_get(), DRW_context_state_get(), DRW_shgroup_call, DRW_shgroup_call_sculpt(), DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_vec4_copy(), DRW_state_is_image_render(), Object::dtx, G_draw, IN_FRONT, OVERLAY_PrivateData::mode_transfer, mode_transfer_alpha_for_action_slot_time_get(), mode_transfer_is_animation_running(), OVERLAY_PassList::mode_transfer_ps, mul_v3_fl(), NOT_IN_FRONT, OB_DRAW_IN_FRONT, OVERLAY_shader_uniform_color(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, Object::runtime, DRWContextState::rv3d, srgb_to_linearrgb_v4(), OVERLAY_Data::stl, TH_VERTEX_SELECT, OVERLAY_PrivateData::time, UI_GetThemeColor3fv(), OVERLAY_PrivateData::use_in_front, and OVERLAY_PrivateData::xray_enabled.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_mode_transfer_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 130 of file overlay_mode_transfer.cc.
References DRW_draw_pass(), OVERLAY_PassList::mode_transfer_ps, NOT_IN_FRONT, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_mode_transfer_infront_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 137 of file overlay_mode_transfer.cc.
References DRW_draw_pass(), IN_FRONT, OVERLAY_PassList::mode_transfer_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().