|
Blender V4.3
|
#include "DRW_render.hh"#include "DNA_mesh_types.h"#include "DNA_pointcloud_types.h"#include "BLI_math_vector.hh"#include "BLI_span.hh"#include "GPU_batch.hh"#include "BKE_attribute.hh"#include "BKE_curves.hh"#include "BKE_customdata.hh"#include "BKE_duplilist.hh"#include "BKE_geometry_set.hh"#include "draw_cache_extract.hh"#include "draw_cache_impl.hh"#include "overlay_private.hh"Go to the source code of this file.
Functions | |
| void | OVERLAY_viewer_attribute_cache_init (OVERLAY_Data *vedata) |
| static void | populate_cache_for_instance (Object &object, OVERLAY_PrivateData &pd, const DupliObject &dupli_object, const float opacity) |
| static bool | attribute_type_supports_viewer_overlay (const eCustomDataType data_type) |
| static void | populate_cache_for_geometry (Object &object, OVERLAY_PrivateData &pd, const float opacity) |
| void | OVERLAY_viewer_attribute_cache_populate (OVERLAY_Data *vedata, Object *object) |
| void | OVERLAY_viewer_attribute_draw (OVERLAY_Data *vedata) |
|
static |
Definition at line 107 of file overlay_viewer_attribute.cc.
References CD_MASK_PROP_ALL, CD_MASK_PROP_FLOAT4X4, CD_MASK_PROP_QUATERNION, and CD_TYPE_AS_MASK.
Referenced by OVERLAY_viewer_attribute_cache_populate(), and populate_cache_for_geometry().
| void OVERLAY_viewer_attribute_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 29 of file overlay_viewer_attribute.cc.
References OVERLAY_PassList::attribute_ps, OVERLAY_PrivateData::clipping_state, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_STATE_BLEND_ALPHA, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, OVERLAY_shader_uniform_color(), OVERLAY_shader_uniform_color_pointcloud(), OVERLAY_shader_viewer_attribute_curve(), OVERLAY_shader_viewer_attribute_curves(), OVERLAY_shader_viewer_attribute_mesh(), OVERLAY_shader_viewer_attribute_pointcloud(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, state, OVERLAY_Data::stl, OVERLAY_PrivateData::viewer_attribute_curve_grp, OVERLAY_PrivateData::viewer_attribute_curves_grp, OVERLAY_PrivateData::viewer_attribute_instance_grp, OVERLAY_PrivateData::viewer_attribute_instance_pointcloud_grp, OVERLAY_PrivateData::viewer_attribute_mesh_grp, and OVERLAY_PrivateData::viewer_attribute_pointcloud_grp.
Referenced by OVERLAY_cache_init().
| void OVERLAY_viewer_attribute_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | object ) |
Definition at line 189 of file overlay_viewer_attribute.cc.
References attribute_type_supports_viewer_overlay(), DRW_object_get_dupli(), blender::bke::GeometrySet::get_component(), OVERLAY_PrivateData::overlay, OVERLAY_StorageList::pd, populate_cache_for_geometry(), populate_cache_for_instance(), DupliObject::preview_base_geometry, DupliObject::preview_instance_index, OVERLAY_Data::stl, and View3DOverlay::viewer_attribute_opacity.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_viewer_attribute_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 210 of file overlay_viewer_attribute.cc.
References OVERLAY_PassList::attribute_ps, DRW_draw_pass(), and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
|
static |
Definition at line 113 of file overlay_viewer_attribute.cc.
References attribute_type_supports_viewer_overlay(), Geometry::attributes, batch, DRW_cache_curve_edge_wire_viewer_attribute_get(), DRW_cache_mesh_surface_viewer_attribute_get(), DRW_shgroup_buffer_texture(), DRW_shgroup_buffer_texture_ref(), DRW_shgroup_call, DRW_shgroup_call_obmat, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), Curves::geometry, OB_CURVES, OB_CURVES_LEGACY, OB_MESH, OB_POINTCLOUD, OVERLAY_PrivateData::viewer_attribute_curve_grp, OVERLAY_PrivateData::viewer_attribute_curves_grp, OVERLAY_PrivateData::viewer_attribute_mesh_grp, and OVERLAY_PrivateData::viewer_attribute_pointcloud_grp.
Referenced by OVERLAY_viewer_attribute_cache_populate().
|
static |
Definition at line 53 of file overlay_viewer_attribute.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a, batch, DRW_cache_curve_edge_wire_get(), DRW_cache_mesh_loose_edges_get(), DRW_cache_mesh_surface_get(), DRW_shgroup_call, DRW_shgroup_call_obmat, DRW_shgroup_create_sub(), DRW_shgroup_uniform_vec4_copy(), blender::bke::GeometrySet::get_component(), OB_CURVES, OB_CURVES_LEGACY, OB_MESH, OB_POINTCLOUD, DupliObject::preview_base_geometry, DupliObject::preview_instance_index, ptr, OVERLAY_PrivateData::viewer_attribute_instance_grp, and OVERLAY_PrivateData::viewer_attribute_pointcloud_grp.
Referenced by OVERLAY_viewer_attribute_cache_populate().