Blender
V3.3
|
#include "BKE_paint.h"
#include "DRW_render.h"
#include "ED_view3d.h"
#include "PIL_time.h"
#include "UI_resources.h"
#include "overlay_private.h"
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_animation_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 34 of file overlay_mode_transfer.c.
#define MODE_TRANSFER_FLASH_LENGTH 0.55f |
Definition at line 32 of file overlay_mode_transfer.c.
#define MODE_TRANSFER_FLASH_MAX_ALPHA 0.25f |
Definition at line 35 of file overlay_mode_transfer.c.
Definition at line 42 of file overlay_mode_transfer.c.
References MODE_TRANSFER_FLASH_FADE, MODE_TRANSFER_FLASH_LENGTH, and MODE_TRANSFER_FLASH_MAX_ALPHA.
Referenced by OVERLAY_mode_transfer_cache_populate().
Definition at line 37 of file overlay_mode_transfer.c.
References MODE_TRANSFER_FLASH_LENGTH.
Referenced by OVERLAY_mode_transfer_cache_populate().
void OVERLAY_mode_transfer_cache_finish | ( | OVERLAY_Data * | vedata | ) |
Definition at line 137 of file overlay_mode_transfer.c.
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 18 of file overlay_mode_transfer.c.
References OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_EQUAL, DRW_STATE_WRITE_COLOR, OVERLAY_PrivateData::mode_transfer, OVERLAY_PassList::mode_transfer_ps, OVERLAY_StorageList::pd, PIL_check_seconds_timer(), 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 71 of file overlay_mode_transfer.c.
References OVERLAY_PrivateData::any_animated, BKE_sculptsession_use_pbvh_draw(), DRW_Global::block_ubo, color, 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, GPUBatch, IN_FRONT, OVERLAY_PrivateData::mode_transfer, mode_transfer_alpha_for_animation_time_get(), mode_transfer_is_animation_running(), OVERLAY_PassList::mode_transfer_ps, NOT_IN_FRONT, OB_DRAW_IN_FRONT, Object_Runtime::overlay_mode_transfer_start_time, OVERLAY_shader_uniform_color(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, Object::runtime, DRWContextState::rv3d, sh, 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 123 of file overlay_mode_transfer.c.
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 130 of file overlay_mode_transfer.c.
References DRW_draw_pass(), IN_FRONT, OVERLAY_PassList::mode_transfer_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().