Blender
V3.3
|
#include "DRW_render.h"
#include "ED_view3d.h"
#include "draw_cache_impl.h"
#include "overlay_private.h"
Go to the source code of this file.
Functions | |
void | OVERLAY_edit_curves_init (OVERLAY_Data *vedata) |
void | OVERLAY_edit_curves_cache_init (OVERLAY_Data *vedata) |
static void | overlay_edit_curves_add_ob_to_pass (OVERLAY_PrivateData *pd, Object *ob, bool in_front) |
void | OVERLAY_edit_curves_cache_populate (OVERLAY_Data *vedata, Object *ob) |
void | OVERLAY_edit_curves_draw (OVERLAY_Data *vedata) |
|
static |
Definition at line 59 of file overlay_edit_curves.cc.
References curves, Object::data, DRW_curves_batch_cache_get_edit_points(), DRW_shgroup_call_no_cull, OVERLAY_PrivateData::edit_curves_points_grp, and GPUBatch.
Referenced by OVERLAY_edit_curves_cache_populate().
void OVERLAY_edit_curves_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 28 of file overlay_edit_curves.cc.
References View3DOverlay::backwire_opacity, DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, DefaultTextureList::depth, OVERLAY_PrivateData::do_zbufclip, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_texture_ref(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_viewport_texture_list_get(), OVERLAY_TextureList::dummy_depth_tx, OVERLAY_PrivateData::edit_curves, OVERLAY_PrivateData::edit_curves_points_grp, OVERLAY_PassList::edit_curves_points_ps, G_draw, View3D::overlay, OVERLAY_shader_edit_curve_point(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, state, OVERLAY_Data::stl, OVERLAY_Data::txl, and DRWContextState::v3d.
Referenced by OVERLAY_cache_init().
void OVERLAY_edit_curves_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 67 of file overlay_edit_curves.cc.
References OVERLAY_PrivateData::do_zbufclip, OVERLAY_PrivateData::edit_curves, overlay_edit_curves_add_ob_to_pass(), OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
void OVERLAY_edit_curves_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 79 of file overlay_edit_curves.cc.
References OVERLAY_PrivateData::do_zbufclip, DRW_draw_pass(), DRW_view_set_active(), OVERLAY_PrivateData::edit_curves, OVERLAY_PassList::edit_curves_points_ps, IN_FRONT, NOT_IN_FRONT, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, and OVERLAY_PrivateData::view_edit_curves_points.
Referenced by OVERLAY_draw_scene().
void OVERLAY_edit_curves_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 16 of file overlay_edit_curves.cc.
References OVERLAY_PrivateData::do_zbufclip, DRW_context_state_get(), DRW_view_default_get(), OVERLAY_PrivateData::edit_curves, OVERLAY_StorageList::pd, OVERLAY_Data::stl, DRWContextState::v3d, OVERLAY_PrivateData::view_edit_curves_points, and XRAY_FLAG_ENABLED.
Referenced by OVERLAY_engine_init().