Blender
V3.3
|
Go to the source code of this file.
Functions | |
void | OVERLAY_edit_curve_cache_init (OVERLAY_Data *vedata) |
void | OVERLAY_edit_curve_cache_populate (OVERLAY_Data *vedata, Object *ob) |
void | OVERLAY_edit_surf_cache_populate (OVERLAY_Data *vedata, Object *ob) |
void | OVERLAY_edit_curve_draw (OVERLAY_Data *vedata) |
void OVERLAY_edit_curve_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 14 of file overlay_edit_curve.c.
References DRW_Global::block_ubo, OVERLAY_PrivateData::clipping_state, CURVE_HANDLE_NONE, DRW_context_state_get(), DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_int_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, OVERLAY_PrivateData::edit_curve, OVERLAY_PrivateData::edit_curve_handle_grp, OVERLAY_PassList::edit_curve_handle_ps, OVERLAY_PrivateData::edit_curve_normal_grp, OVERLAY_ShadingData::edit_curve_normal_length, OVERLAY_PrivateData::edit_curve_points_grp, OVERLAY_PrivateData::edit_curve_wire_grp, OVERLAY_PassList::edit_curve_wire_ps, G_draw, OVERLAY_PrivateData::handle_display, View3DOverlay::handle_display, View3DOverlay::normals_length, View3D::overlay, OVERLAY_shader_edit_curve_handle(), OVERLAY_shader_edit_curve_point(), OVERLAY_shader_edit_curve_wire(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, sh, OVERLAY_PrivateData::shdata, OVERLAY_PrivateData::show_handles, state, OVERLAY_Data::stl, and DRWContextState::v3d.
Referenced by OVERLAY_cache_init().
void OVERLAY_edit_curve_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 62 of file overlay_edit_curve.c.
References CU_3D, Object::data, DRW_cache_curve_edge_normal_get(), DRW_cache_curve_edge_overlay_get(), DRW_cache_curve_edge_wire_get(), DRW_cache_curve_vert_overlay_get(), DRW_shgroup_call_instances(), DRW_shgroup_call_no_cull, Object::dtx, OVERLAY_PrivateData::edit_curve_handle_grp, OVERLAY_PrivateData::edit_curve_normal_grp, OVERLAY_PrivateData::edit_curve_points_grp, OVERLAY_PrivateData::edit_curve_wire_grp, View3DOverlay::edit_flag, Curve::flag, GPUBatch, OB_DRAW_IN_FRONT, OVERLAY_PrivateData::overlay, OVERLAY_StorageList::pd, OVERLAY_Data::stl, and V3D_OVERLAY_EDIT_CU_NORMALS.
Referenced by OVERLAY_cache_populate().
void OVERLAY_edit_curve_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 108 of file overlay_edit_curve.c.
References DRW_draw_pass(), DRW_state_is_fbo(), OVERLAY_PassList::edit_curve_handle_ps, OVERLAY_PassList::edit_curve_wire_ps, OVERLAY_Data::fbl, GPU_framebuffer_bind(), OVERLAY_FramebufferList::overlay_default_fb, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
void OVERLAY_edit_surf_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 92 of file overlay_edit_curve.c.
References DRW_cache_curve_edge_overlay_get(), DRW_cache_curve_vert_overlay_get(), DRW_shgroup_call_no_cull, OVERLAY_PrivateData::edit_curve_handle_grp, OVERLAY_PrivateData::edit_curve_points_grp, GPUBatch, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().