|
Blender V4.3
|
#include "DNA_curve_types.h"#include "DNA_curves_types.h"#include "DNA_grease_pencil_types.h"#include "DNA_lattice_types.h"#include "DNA_mesh_types.h"#include "DNA_meta_types.h"#include "DNA_modifier_types.h"#include "DNA_object_types.h"#include "DNA_particle_types.h"#include "DNA_pointcloud_types.h"#include "DNA_scene_types.h"#include "DNA_volume_types.h"#include "UI_resources.hh"#include "BLI_utildefines.h"#include "BKE_object.hh"#include "BKE_paint.hh"#include "GPU_batch.hh"#include "GPU_batch_utils.hh"#include "GPU_capabilities.hh"#include "MEM_guardedalloc.h"#include "draw_cache.hh"#include "draw_cache_impl.hh"#include "draw_manager_c.hh"Go to the source code of this file.
Classes | |
| struct | Vert |
| struct | VertShaded |
| struct | DRWShapeCache |
Namespaces | |
| namespace | blender |
| namespace | blender::draw |
Lights | |
| #define | DIAMOND_NSEGMENTS 4 |
| #define | INNER_NSEGMENTS 8 |
| #define | OUTER_NSEGMENTS 10 |
| #define | CIRCLE_NSEGMENTS 32 |
| static float | light_distance_z_get (char axis, const bool start) |
| blender::gpu::Batch * | DRW_cache_groundline_get () |
| blender::gpu::Batch * | DRW_cache_light_icon_inner_lines_get () |
| blender::gpu::Batch * | DRW_cache_light_icon_outer_lines_get () |
| blender::gpu::Batch * | DRW_cache_light_icon_sun_rays_get () |
| blender::gpu::Batch * | DRW_cache_light_point_lines_get () |
| blender::gpu::Batch * | DRW_cache_light_sun_lines_get () |
| blender::gpu::Batch * | DRW_cache_light_spot_lines_get () |
| blender::gpu::Batch * | DRW_cache_light_spot_volume_get () |
| blender::gpu::Batch * | DRW_cache_light_area_disk_lines_get () |
| blender::gpu::Batch * | DRW_cache_light_area_square_lines_get () |
Internal Types | |
| static struct DRWShapeCache | SHC = {nullptr} |
| void | DRW_shape_cache_free () |
Common | |
| static const float | bone_box_verts [8][3] |
| static const uint | bone_box_wire [24] |
| static const uint | bone_box_solid_tris [12][3] |
| static const uint | bone_box_wire_lines_adjacency [12][4] |
| static const float | bone_box_solid_normals [12][3] |
| static void | circle_verts (blender::gpu::VertBuf *vbo, int *vert_idx, int segments, float radius, float z, int flag) |
| static void | circle_dashed_verts (blender::gpu::VertBuf *vbo, int *vert_idx, int segments, float radius, float z, int flag) |
| blender::gpu::Batch * | DRW_cache_cube_get () |
| blender::gpu::Batch * | DRW_cache_circle_get () |
| blender::gpu::Batch * | DRW_cache_normal_arrow_get () |
| #define CIRCLE_NSEGMENTS 32 |
Definition at line 1442 of file draw_cache.cc.
Referenced by DRW_cache_light_area_disk_lines_get(), DRW_cache_light_point_lines_get(), DRW_cache_light_spot_lines_get(), and DRW_cache_light_spot_volume_get().
| #define CIRCLE_RESOL 64 |
Referenced by DRW_cache_bone_envelope_outline_get(), DRW_cache_bone_point_get(), DRW_cache_bone_point_wire_outline_get(), DRW_cache_bone_stick_get(), DRW_cache_circle_get(), DRW_cache_field_cone_limit_get(), DRW_cache_field_curve_get(), DRW_cache_field_force_get(), DRW_cache_field_sphere_limit_get(), DRW_cache_field_tube_limit_get(), DRW_cache_field_wind_get(), and DRW_cache_particles_get_prim().
| #define CIRCLE_RESOL 32 |
| #define CIRCLE_RESOL 32 |
| #define CIRCLE_RESOL 32 |
| #define CIRCLE_RESOL 32 |
| #define CIRCLE_RESOL 32 |
| #define CIRCLE_RESOL 32 |
| #define CIRCLE_RESOL 64 |
| #define CIRCLE_RESOL 64 |
| #define CIRCLE_RESOL 64 |
| #define CIRCLE_RESOL 12 |
| #define CIRCLE_RESOL 32 |
| #define COL_BONE (1 << 3) |
Definition at line 2382 of file draw_cache.cc.
Referenced by DRW_cache_bone_stick_get(), and blender::draw::overlay::ShapeCache::ShapeCache().
| #define COL_HEAD (1 << 1) |
Definition at line 2380 of file draw_cache.cc.
Referenced by DRW_cache_bone_stick_get(), and blender::draw::overlay::ShapeCache::ShapeCache().
| #define COL_TAIL (1 << 2) |
Definition at line 2381 of file draw_cache.cc.
Referenced by DRW_cache_bone_stick_get(), and blender::draw::overlay::ShapeCache::ShapeCache().
| #define COL_WIRE (1 << 0) |
Definition at line 2379 of file draw_cache.cc.
Referenced by DRW_cache_bone_stick_get(), and blender::draw::overlay::ShapeCache::ShapeCache().
| #define DIAMOND_NSEGMENTS 4 |
Definition at line 1439 of file draw_cache.cc.
Referenced by DRW_cache_camera_distances_get(), DRW_cache_groundline_get(), DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_icon_inner_lines_get(), DRW_cache_light_spot_lines_get(), DRW_cache_lightprobe_cube_get(), and DRW_cache_lightprobe_grid_get().
| #define DRW_SPHERE_SHAPE_LATITUDE_HIGH 80 |
Definition at line 70 of file draw_cache.cc.
Referenced by DRW_cache_sphere_get().
| #define DRW_SPHERE_SHAPE_LATITUDE_LOW 32 |
Definition at line 64 of file draw_cache.cc.
Referenced by DRW_cache_sphere_get().
| #define DRW_SPHERE_SHAPE_LATITUDE_MEDIUM 64 |
Definition at line 67 of file draw_cache.cc.
Referenced by DRW_cache_sphere_get().
| #define DRW_SPHERE_SHAPE_LONGITUDE_HIGH 60 |
Definition at line 71 of file draw_cache.cc.
Referenced by DRW_cache_sphere_get().
| #define DRW_SPHERE_SHAPE_LONGITUDE_LOW 24 |
Definition at line 65 of file draw_cache.cc.
Referenced by DRW_cache_sphere_get().
| #define DRW_SPHERE_SHAPE_LONGITUDE_MEDIUM 48 |
Definition at line 68 of file draw_cache.cc.
Referenced by DRW_cache_sphere_get().
| #define INNER_NSEGMENTS 8 |
Definition at line 1440 of file draw_cache.cc.
Referenced by DRW_cache_light_icon_inner_lines_get().
| #define MARKER_FILL_LAYER 6 |
Definition at line 2527 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get().
| #define MARKER_LEN ARRAY_SIZE(axis_marker) |
Definition at line 2526 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get().
| #define NSEGMENTS 32 |
| #define NSEGMENTS 8 |
| #define NSEGMENTS 12 |
| #define NSEGMENTS 24 /* Must be multiple of 2. */ |
| #define OUTER_NSEGMENTS 10 |
Definition at line 1441 of file draw_cache.cc.
Referenced by DRW_cache_light_icon_outer_lines_get().
| #define POS_BONE (1 << 6) |
Definition at line 2386 of file draw_cache.cc.
Referenced by DRW_cache_bone_stick_get(), and blender::draw::overlay::ShapeCache::ShapeCache().
| #define POS_HEAD (1 << 4) |
Definition at line 2384 of file draw_cache.cc.
Referenced by DRW_cache_bone_stick_get(), and blender::draw::overlay::ShapeCache::ShapeCache().
| #define POS_TAIL (1 << 5) |
Definition at line 2385 of file draw_cache.cc.
Referenced by DRW_cache_bone_stick_get(), and blender::draw::overlay::ShapeCache::ShapeCache().
| #define S_X 0.0215f |
Definition at line 2459 of file draw_cache.cc.
| #define S_X 0.0175f |
Definition at line 2459 of file draw_cache.cc.
| #define S_X 0.02f |
Definition at line 2459 of file draw_cache.cc.
| #define S_X 0.007f |
Definition at line 2459 of file draw_cache.cc.
| #define S_Y 0.025f |
Definition at line 2460 of file draw_cache.cc.
| #define S_Y 0.025f |
Definition at line 2460 of file draw_cache.cc.
| #define S_Y 0.025f |
Definition at line 2460 of file draw_cache.cc.
| #define S_Y 0.007f |
Definition at line 2460 of file draw_cache.cc.
Definition at line 2590 of file draw_cache.cc.
Referenced by QuadDice::add_grid(), DRW_cache_bone_dof_lines_get(), DRW_cache_bone_dof_sphere_get(), QuadDice::set_side(), and blender::draw::overlay::ShapeCache::ShapeCache().
| #define SIDE_STIPPLE 32 |
Referenced by DRW_cache_field_cone_limit_get(), and DRW_cache_field_tube_limit_get().
| #define SIDE_STIPPLE 32 |
| #define SPIRAL_RESOL 32 |
Referenced by DRW_cache_field_vortex_get().
| #define VCLASS_CAMERA_DIST (1 << 6) |
Definition at line 50 of file draw_cache.cc.
Referenced by DRW_cache_camera_distances_get().
| #define VCLASS_CAMERA_FRAME (1 << 5) |
Definition at line 49 of file draw_cache.cc.
Referenced by DRW_cache_camera_frame_get(), DRW_cache_camera_tria_get(), DRW_cache_camera_tria_wire_get(), DRW_cache_camera_volume_get(), and DRW_cache_camera_volume_wire_get().
| #define VCLASS_CAMERA_VOLUME (1 << 7) |
Definition at line 51 of file draw_cache.cc.
Referenced by DRW_cache_camera_volume_get(), and DRW_cache_camera_volume_wire_get().
| #define VCLASS_EMPTY_AXES (1 << 11) |
Definition at line 57 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get(), and DRW_cache_particles_get_prim().
| #define VCLASS_EMPTY_AXES_NAME (1 << 12) |
Definition at line 58 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get().
| #define VCLASS_EMPTY_AXES_SHADOW (1 << 13) |
Definition at line 59 of file draw_cache.cc.
| #define VCLASS_EMPTY_SCALED (1 << 10) |
Definition at line 56 of file draw_cache.cc.
Referenced by DRW_cache_circle_get(), DRW_cache_cube_get(), DRW_cache_empty_cone_get(), DRW_cache_empty_cube_get(), DRW_cache_empty_cylinder_get(), DRW_cache_empty_sphere_get(), DRW_cache_plain_axes_get(), DRW_cache_quad_get(), DRW_cache_quad_wires_get(), DRW_cache_single_arrow_get(), and sphere_lat_lon_vert().
| #define VCLASS_EMPTY_SIZE (1 << 14) |
Definition at line 60 of file draw_cache.cc.
Referenced by DRW_cache_field_cone_limit_get(), DRW_cache_field_curve_get(), DRW_cache_field_force_get(), DRW_cache_field_sphere_limit_get(), DRW_cache_field_tube_limit_get(), DRW_cache_field_vortex_get(), and DRW_cache_field_wind_get().
| #define VCLASS_LIGHT_AREA_SHAPE (1 << 0) |
Definition at line 43 of file draw_cache.cc.
Referenced by DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_point_lines_get(), and DRW_cache_light_spot_lines_get().
| #define VCLASS_LIGHT_DIST (1 << 4) |
Definition at line 47 of file draw_cache.cc.
Referenced by DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_spot_lines_get(), DRW_cache_lightprobe_cube_get(), and DRW_cache_lightprobe_grid_get().
| #define VCLASS_LIGHT_SPOT_BLEND (1 << 2) |
Definition at line 45 of file draw_cache.cc.
Referenced by DRW_cache_light_spot_lines_get().
| #define VCLASS_LIGHT_SPOT_CONE (1 << 3) |
Definition at line 46 of file draw_cache.cc.
Referenced by DRW_cache_light_spot_lines_get().
| #define VCLASS_LIGHT_SPOT_SHAPE (1 << 1) |
Definition at line 44 of file draw_cache.cc.
Referenced by DRW_cache_light_spot_lines_get(), and DRW_cache_light_spot_volume_get().
| #define VCLASS_SCREENALIGNED (1 << 9) |
Definition at line 54 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get(), DRW_cache_field_curve_get(), DRW_cache_field_force_get(), DRW_cache_field_sphere_limit_get(), DRW_cache_light_point_lines_get(), DRW_cache_light_spot_lines_get(), and DRW_cache_particles_get_prim().
| #define VCLASS_SCREENSPACE (1 << 8) |
Definition at line 53 of file draw_cache.cc.
Referenced by DRW_cache_camera_distances_get(), DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_icon_inner_lines_get(), DRW_cache_light_icon_outer_lines_get(), DRW_cache_light_icon_sun_rays_get(), DRW_cache_light_spot_lines_get(), DRW_cache_lightprobe_cube_get(), DRW_cache_lightprobe_grid_get(), and DRW_cache_lightprobe_planar_get().
| #define X_LEN ARRAY_SIZE(x_axis_name) |
Definition at line 2467 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get().
| #define Y_LEN ARRAY_SIZE(y_axis_name) |
Definition at line 2481 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get().
| #define Z_LEN ARRAY_SIZE(z_axis_name) |
Definition at line 2499 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get().
|
static |
Definition at line 259 of file draw_cache.cc.
References GPU_vertbuf_attr_set().
Definition at line 2161 of file draw_cache.cc.
Referenced by DRW_cache_bone_envelope_solid_get().
|
static |
Definition at line 599 of file draw_cache.cc.
References b, cosf, flag, GPU_vertbuf_vert_set(), M_PI, sinf, v, and z().
Referenced by DRW_cache_field_cone_limit_get(), DRW_cache_field_sphere_limit_get(), DRW_cache_field_tube_limit_get(), DRW_cache_light_icon_inner_lines_get(), and DRW_cache_light_icon_outer_lines_get().
|
static |
Definition at line 584 of file draw_cache.cc.
References b, cosf, flag, GPU_vertbuf_vert_set(), M_PI, sinf, v, and z().
Referenced by DRW_cache_camera_distances_get(), DRW_cache_field_curve_get(), DRW_cache_field_force_get(), DRW_cache_field_wind_get(), DRW_cache_groundline_get(), DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_icon_inner_lines_get(), DRW_cache_light_point_lines_get(), DRW_cache_light_spot_lines_get(), DRW_cache_lightprobe_cube_get(), and DRW_cache_lightprobe_grid_get().
| void drw_batch_cache_generate_requested | ( | Object * | ob | ) |
Definition at line 3351 of file draw_cache.cc.
References CTX_data_mode_enum_ex(), CTX_MODE_EDIT_MESH, CTX_MODE_PAINT_TEXTURE, CTX_MODE_PAINT_VERTEX, CTX_MODE_PAINT_WEIGHT, CTX_MODE_SCULPT, Object::data, DRW_context_state_get(), DRW_object_is_in_edit_mode(), DRW_object_use_hide_faces(), DST, ELEM, OB_CURVES, OB_CURVES_LEGACY, OB_FONT, OB_MESH, OB_POINTCLOUD, OB_SURF, DRWContextState::obact, DRWContextState::object_edit, DRWContextState::object_mode, DRWContextState::scene, DRWManager::task_graph, and Object::type.
Referenced by drw_engines_cache_populate(), DRW_render_object_iter(), and duplidata_key_free().
| void drw_batch_cache_generate_requested_delayed | ( | Object * | ob | ) |
Definition at line 3419 of file draw_cache.cc.
References BLI_gset_add(), DRWManager::delayed_extraction, and DST.
Referenced by drw_shgroup_bone_custom_mesh_wire(), drw_shgroup_bone_custom_solid_mesh(), drw_shgroup_custom_bone_curve(), and blender::draw::overlay::MeshUVs::edit_object_sync().
| void drw_batch_cache_generate_requested_evaluated_mesh_or_curve | ( | Object * | ob | ) |
Definition at line 3388 of file draw_cache.cc.
References BKE_object_get_evaluated_mesh_no_subsurf_unchecked(), CTX_data_mode_enum_ex(), CTX_MODE_EDIT_MESH, CTX_MODE_PAINT_TEXTURE, CTX_MODE_PAINT_VERTEX, CTX_MODE_PAINT_WEIGHT, CTX_MODE_SCULPT, DRW_context_state_get(), DRW_object_is_in_edit_mode(), DRW_object_use_hide_faces(), DST, ELEM, OB_CURVES_LEGACY, OB_FONT, OB_MESH, OB_SURF, DRWContextState::obact, DRWContextState::object_edit, DRWContextState::object_mode, DRWContextState::scene, DRWManager::task_graph, and Object::type.
Referenced by drw_task_graph_deinit().
| void drw_batch_cache_validate | ( | Object * | ob | ) |
Definition at line 3320 of file draw_cache.cc.
References Object::data, OB_CURVES, OB_CURVES_LEGACY, OB_FONT, OB_GREASE_PENCIL, OB_LATTICE, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, and Object::type.
Referenced by DRW_draw_depth_object(), drw_duplidata_load(), drw_engines_cache_populate(), and DRW_render_object_iter().
| blender::gpu::Batch * DRW_cache_bone_arrows_get | ( | ) |
Definition at line 2531 of file draw_cache.cc.
References axis_marker, DRWShapeCache::drw_bone_arrows, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), MARKER_FILL_LAYER, MARKER_LEN, mul_v2_v2fl(), SHC, v, VCLASS_EMPTY_AXES, VCLASS_EMPTY_AXES_NAME, VCLASS_SCREENALIGNED, x_axis_name, X_LEN, y_axis_name, Y_LEN, z_axis_name, and Z_LEN.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_bone_box_get | ( | ) |
Definition at line 2104 of file draw_cache.cc.
References attr_id, bone_box_solid_normals, bone_box_solid_tris, bone_box_verts, DRWShapeCache::drw_bone_box, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), nor, pos, and SHC.
Referenced by DRW_cache_bone_box_wire_get(), and OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_box_wire_get | ( | ) |
Definition at line 2134 of file draw_cache.cc.
References bone_box_wire_lines_adjacency, DRWShapeCache::drw_bone_box_wire, DRW_cache_bone_box_get(), GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_indexbuf_add_line_adj_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_LINES_ADJ, and SHC.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_dof_lines_get | ( | ) |
Definition at line 2650 of file draw_cache.cc.
References ARRAY_SIZE, attr_id, cosf, DRWShapeCache::drw_bone_dof_lines, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINE_LOOP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, set_vert, SHC, sinf, staticSine, and v.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_dof_sphere_get | ( | ) |
Definition at line 2597 of file draw_cache.cc.
References ARRAY_SIZE, attr_id, DRWShapeCache::drw_bone_dof_sphere, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_data_resize(), GPU_vertformat_attr_add(), pos, set_vert, SHC, staticSine, v, x, and z().
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_envelope_outline_get | ( | ) |
Definition at line 2219 of file draw_cache.cc.
References attr_id, CIRCLE_RESOL, copy_v2_v2(), cosf, DRWShapeCache::drw_bone_envelope_outline, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINE_STRIP, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, SHC, sinf, v, and v2.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_envelope_solid_get | ( | ) |
Definition at line 2168 of file draw_cache.cc.
References attr_id, benv_lat_lon_to_co(), DRWShapeCache::drw_bone_envelope, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_STRIP, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, and SHC.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_octahedral_get | ( | ) |
Definition at line 2048 of file draw_cache.cc.
References attr_id, bone_octahedral_solid_normals, bone_octahedral_solid_tris, bone_octahedral_verts, DRWShapeCache::drw_bone_octahedral, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), nor, pos, and SHC.
Referenced by DRW_cache_bone_octahedral_wire_get(), and OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_octahedral_wire_get | ( | ) |
Definition at line 2079 of file draw_cache.cc.
References bone_octahedral_wire_lines_adjacency, DRWShapeCache::drw_bone_octahedral_wire, DRW_cache_bone_octahedral_get(), GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_indexbuf_add_line_adj_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_LINES_ADJ, and SHC.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_point_get | ( | ) |
Definition at line 2264 of file draw_cache.cc.
References attr_id, CIRCLE_RESOL, cosf, DRWShapeCache::drw_bone_point, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_FAN, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, nor, pos, SHC, sinf, and v.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_bone_point_wire_outline_get | ( | ) |
Definition at line 2339 of file draw_cache.cc.
References attr_id, CIRCLE_RESOL, cosf, DRWShapeCache::drw_bone_point_wire, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, SHC, sinf, sphere_wire_vbo(), and v.
Referenced by OVERLAY_armature_cache_init(), and OVERLAY_metaball_cache_init().
| blender::gpu::Batch * DRW_cache_bone_stick_get | ( | ) |
Definition at line 2388 of file draw_cache.cc.
References attr_id, CIRCLE_RESOL, COL_BONE, COL_HEAD, COL_TAIL, COL_WIRE, copy_v2_fl(), cosf, DRWShapeCache::drw_bone_stick, ELEM, blender::gpu::VertBuf::flag, flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_COMP_U32, GPU_FETCH_FLOAT, GPU_FETCH_INT, GPU_indexbuf_add_generic_vert(), GPU_indexbuf_add_primitive_restart(), GPU_indexbuf_build(), GPU_indexbuf_init_ex(), GPU_PRIM_TRI_FAN, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, POS_BONE, POS_HEAD, POS_TAIL, SHC, sinf, and v.
Referenced by OVERLAY_armature_cache_init().
| blender::gpu::Batch * DRW_cache_camera_distances_get | ( | ) |
Definition at line 2816 of file draw_cache.cc.
References circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_camera_distances, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_CAMERA_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_camera_frame_get | ( | ) |
Definition at line 2690 of file draw_cache.cc.
References b, DRWShapeCache::drw_camera_frame, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_CAMERA_FRAME, x, and y.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_camera_tria_get | ( | ) |
Definition at line 2796 of file draw_cache.cc.
References DRWShapeCache::drw_camera_tria, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, and VCLASS_CAMERA_FRAME.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_camera_tria_wire_get | ( | ) |
Definition at line 2771 of file draw_cache.cc.
References b, DRWShapeCache::drw_camera_tria_wire, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_CAMERA_FRAME, x, and y.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_camera_volume_get | ( | ) |
Definition at line 2722 of file draw_cache.cc.
References ARRAY_SIZE, bone_box_solid_tris, bone_box_verts, DRWShapeCache::drw_camera_volume, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_CAMERA_FRAME, VCLASS_CAMERA_VOLUME, x, y, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_camera_volume_wire_get | ( | ) |
Definition at line 2747 of file draw_cache.cc.
References ARRAY_SIZE, bone_box_verts, bone_box_wire, DRWShapeCache::drw_camera_volume_wire, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_CAMERA_FRAME, VCLASS_CAMERA_VOLUME, x, y, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_circle_get | ( | ) |
Definition at line 753 of file draw_cache.cc.
References CIRCLE_RESOL, cosf, DRWShapeCache::drw_circle, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINE_STRIP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, sinf, v, VCLASS_EMPTY_SCALED, x, y, and z().
Referenced by overlay_edit_mesh_add_ob_to_pass(), and OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_cube_get | ( | ) |
Definition at line 720 of file draw_cache.cc.
References ARRAY_SIZE, bone_box_solid_tris, bone_box_verts, DRWShapeCache::drw_cube, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_BATCH_OWNS_VBO, GPU_indexbuf_add_tri_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_EMPTY_SCALED, x, y, and z().
Referenced by blender::draw::overlay::Background::begin_sync(), blender::eevee::ShadowModule::begin_sync(), OVERLAY_background_cache_init(), and blender::eevee::SyncModule::sync_volume().
| blender::gpu::Batch * DRW_cache_cursor_get | ( | bool | crosshair_lines | ) |
Definition at line 3219 of file draw_cache.cc.
References attr_id, color, cosf, DRWShapeCache::drw_cursor, DRWShapeCache::drw_cursor_only_circle, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_indexbuf_add_generic_vert(), GPU_indexbuf_add_primitive_restart(), GPU_indexbuf_build(), GPU_indexbuf_init_ex(), GPU_PRIM_LINE_STRIP, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, red, SHC, sinf, TH_VIEW_OVERLAY, UI_GetThemeColor3ubv(), and v.
Referenced by DRW_draw_cursor(), and DRW_draw_cursor_2d_ex().
| blender::gpu::Batch * DRW_cache_curve_edge_normal_get | ( | Object * | ob | ) |
Definition at line 2979 of file draw_cache.cc.
References BLI_assert, Object::data, OB_CURVES_LEGACY, and Object::type.
Referenced by blender::draw::overlay::Curves::edit_object_sync_legacy(), and OVERLAY_edit_curve_cache_populate().
| blender::gpu::Batch * DRW_cache_curve_edge_overlay_get | ( | Object * | ob | ) |
Definition at line 2987 of file draw_cache.cc.
References BLI_assert, Object::data, ELEM, OB_CURVES_LEGACY, OB_SURF, and Object::type.
Referenced by blender::draw::overlay::Curves::edit_object_sync_legacy(), OVERLAY_edit_curve_cache_populate(), and OVERLAY_edit_surf_cache_populate().
| blender::gpu::Batch * DRW_cache_curve_edge_wire_get | ( | Object * | ob | ) |
Definition at line 2963 of file draw_cache.cc.
References BLI_assert, Object::data, OB_CURVES_LEGACY, and Object::type.
Referenced by drw_shgroup_custom_bone_curve(), blender::draw::overlay::Curves::edit_object_sync_legacy(), blender::draw::overlay::Wireframe::object_sync(), OVERLAY_edit_curve_cache_populate(), OVERLAY_wireframe_cache_populate(), and populate_cache_for_instance().
| blender::gpu::Batch * DRW_cache_curve_edge_wire_viewer_attribute_get | ( | Object * | ob | ) |
Definition at line 2971 of file draw_cache.cc.
References BLI_assert, Object::data, OB_CURVES_LEGACY, and Object::type.
Referenced by populate_cache_for_geometry().
| blender::gpu::Batch * DRW_cache_curve_vert_overlay_get | ( | Object * | ob | ) |
Definition at line 2996 of file draw_cache.cc.
References BLI_assert, Object::data, ELEM, OB_CURVES_LEGACY, OB_SURF, and Object::type.
Referenced by blender::draw::overlay::Curves::edit_object_sync_legacy(), OVERLAY_edit_curve_cache_populate(), and OVERLAY_edit_surf_cache_populate().
| blender::gpu::Batch * DRW_cache_empty_capsule_body_get | ( | ) |
Definition at line 1156 of file draw_cache.cc.
References attr_id, DRWShapeCache::drw_empty_capsule_body, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_vertbuf_attr_fill(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), pos, and SHC.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_empty_capsule_cap_get | ( | ) |
Definition at line 1189 of file draw_cache.cc.
References attr_id, copy_v2_v2(), copy_v3_fl3(), cosf, DRWShapeCache::drw_empty_capsule_cap, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, NSEGMENTS, pos, SHC, sinf, and v.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_empty_cone_get | ( | ) |
Definition at line 1076 of file draw_cache.cc.
References cosf, DRWShapeCache::drw_empty_cone, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, NSEGMENTS, SHC, sinf, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_empty_cube_get | ( | ) |
Definition at line 1009 of file draw_cache.cc.
References ARRAY_SIZE, bone_box_verts, bone_box_wire, DRWShapeCache::drw_empty_cube, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_EMPTY_SCALED, x, y, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_empty_cylinder_get | ( | ) |
Definition at line 1115 of file draw_cache.cc.
References cosf, DRWShapeCache::drw_empty_cylinder, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, NSEGMENTS, SHC, sinf, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_empty_sphere_get | ( | ) |
Definition at line 1067 of file draw_cache.cc.
References DRWShapeCache::drw_empty_sphere, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, SHC, sphere_wire_vbo(), and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_cone_limit_get | ( | ) |
Definition at line 1377 of file draw_cache.cc.
References circle_dashed_verts(), CIRCLE_RESOL, cosf, DRWShapeCache::drw_field_cone_limit, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, SIDE_STIPPLE, sinf, v, VCLASS_EMPTY_SIZE, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_curve_get | ( | ) |
Definition at line 1322 of file draw_cache.cc.
References CIRCLE_RESOL, circle_verts(), DRWShapeCache::drw_field_curve, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), SHC, v, VCLASS_EMPTY_SIZE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_force_get | ( | ) |
Definition at line 1269 of file draw_cache.cc.
References CIRCLE_RESOL, circle_verts(), DRWShapeCache::drw_field_force, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), SHC, v, VCLASS_EMPTY_SIZE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_sphere_limit_get | ( | ) |
Definition at line 1412 of file draw_cache.cc.
References circle_dashed_verts(), CIRCLE_RESOL, DRWShapeCache::drw_field_sphere_limit, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), SHC, v, VCLASS_EMPTY_SIZE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_tube_limit_get | ( | ) |
Definition at line 1342 of file draw_cache.cc.
References circle_dashed_verts(), CIRCLE_RESOL, cosf, DRWShapeCache::drw_field_tube_limit, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, SIDE_STIPPLE, sinf, v, VCLASS_EMPTY_SIZE, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_vortex_get | ( | ) |
Definition at line 1292 of file draw_cache.cc.
References cosf, DRWShapeCache::drw_field_vortex, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINE_STRIP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, sinf, SPIRAL_RESOL, v, and VCLASS_EMPTY_SIZE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_field_wind_get | ( | ) |
Definition at line 1246 of file draw_cache.cc.
References CIRCLE_RESOL, circle_verts(), DRWShapeCache::drw_field_wind, extra_vert_format(), flag, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), SHC, v, VCLASS_EMPTY_SIZE, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_fullscreen_quad_get | ( | ) |
Use this one for rendering full-screen passes. For 3D objects use DRW_cache_quad_get().
Definition at line 391 of file draw_cache.cc.
References attr_id, DRWShapeCache::drw_fullscreen_quad, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_alias_add(), GPU_vertformat_attr_add(), pos, and SHC.
Referenced by DRW_transform_none().
| blender::gpu::Batch * DRW_cache_grid_get | ( | ) |
Definition at line 465 of file draw_cache.cc.
References attr_id, DRWShapeCache::drw_grid, float, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), madd_v2_v2v2fl(), pos, and SHC.
Referenced by OVERLAY_grid_cache_init().
| blender::gpu::Batch * DRW_cache_groundline_get | ( | ) |
Definition at line 1463 of file draw_cache.cc.
References circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_ground_line, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, and v.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_lattice_vert_overlay_get | ( | Object * | ob | ) |
Definition at line 3063 of file draw_cache.cc.
References BLI_assert, Object::data, OB_LATTICE, and Object::type.
Referenced by blender::draw::overlay::Lattices::edit_object_sync(), and OVERLAY_edit_lattice_cache_populate().
| blender::gpu::Batch * DRW_cache_lattice_verts_get | ( | Object * | ob | ) |
Definition at line 3039 of file draw_cache.cc.
References BLI_assert, Object::data, OB_LATTICE, and Object::type.
| blender::gpu::Batch * DRW_cache_lattice_wire_get | ( | Object * | ob, |
| bool | use_weight ) |
Definition at line 3048 of file draw_cache.cc.
References BLI_assert, BLI_listbase_is_empty(), Object::data, Lattice::dvert, Lattice::editlatt, EditLatt::latt, OB_LATTICE, Object::type, Lattice::vertex_group_active_index, and Lattice::vertex_group_names.
Referenced by blender::draw::overlay::Lattices::edit_object_sync(), blender::draw::overlay::Lattices::object_sync(), OVERLAY_edit_lattice_cache_populate(), and OVERLAY_lattice_cache_populate().
| blender::gpu::Batch * DRW_cache_light_area_disk_lines_get | ( | ) |
Definition at line 1668 of file draw_cache.cc.
References CIRCLE_NSEGMENTS, circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_area_disk_lines, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), light_distance_z_get(), SHC, v, VCLASS_LIGHT_AREA_SHAPE, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_area_square_lines_get | ( | ) |
Definition at line 1695 of file draw_cache.cc.
References b, circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_area_square_lines, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), light_distance_z_get(), SHC, v, VCLASS_LIGHT_AREA_SHAPE, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_icon_inner_lines_get | ( | ) |
Definition at line 1484 of file draw_cache.cc.
References circle_dashed_verts(), circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_icon_inner_lines, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), INNER_NSEGMENTS, SHC, v, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_icon_outer_lines_get | ( | ) |
Definition at line 1505 of file draw_cache.cc.
References circle_dashed_verts(), DRWShapeCache::drw_light_icon_outer_lines, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), OUTER_NSEGMENTS, SHC, v, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_icon_sun_rays_get | ( | ) |
Definition at line 1525 of file draw_cache.cc.
References cosf, DRWShapeCache::drw_light_icon_sun_rays, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, sinf, v, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_point_lines_get | ( | ) |
Definition at line 1557 of file draw_cache.cc.
References CIRCLE_NSEGMENTS, circle_verts(), DRWShapeCache::drw_light_point_lines, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), SHC, v, VCLASS_LIGHT_AREA_SHAPE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_spot_lines_get | ( | ) |
Definition at line 1599 of file draw_cache.cc.
References CIRCLE_NSEGMENTS, circle_verts(), cosf, DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_spot_lines, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), light_distance_z_get(), M_PI, SHC, sinf, v, VCLASS_LIGHT_AREA_SHAPE, VCLASS_LIGHT_DIST, VCLASS_LIGHT_SPOT_BLEND, VCLASS_LIGHT_SPOT_CONE, VCLASS_LIGHT_SPOT_SHAPE, VCLASS_SCREENALIGNED, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_spot_volume_get | ( | ) |
Definition at line 1641 of file draw_cache.cc.
References CIRCLE_NSEGMENTS, cosf, DRWShapeCache::drw_light_spot_volume, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_TRI_FAN, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, SHC, sinf, v, and VCLASS_LIGHT_SPOT_SHAPE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_light_sun_lines_get | ( | ) |
Definition at line 1578 of file draw_cache.cc.
References DRWShapeCache::drw_light_sun_lines, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, and v.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_lightprobe_cube_get | ( | ) |
Definition at line 1805 of file draw_cache.cc.
References circle_verts(), copy_v2_v2(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_lightprobe_cube, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), light_distance_z_get(), SHC, v, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_lightprobe_grid_get | ( | ) |
Definition at line 1860 of file draw_cache.cc.
References add_v2_v2v2(), circle_verts(), copy_v2_v2(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_lightprobe_grid, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), light_distance_z_get(), mul_v2_v2fl(), SHC, v, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_lightprobe_planar_get | ( | ) |
Definition at line 1923 of file draw_cache.cc.
References DRWShapeCache::drw_lightprobe_planar, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, VCLASS_SCREENSPACE, x, and y.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_mesh_all_edges_get | ( | Object * | ob | ) |
Definition at line 2856 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_all_edges_get().
| blender::gpu::Batch * DRW_cache_mesh_all_verts_get | ( | Object * | ob | ) |
Definition at line 2849 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::draw::overlay::Paints::object_sync(), blender::draw::overlay::Wireframe::object_sync(), OVERLAY_paint_vertex_cache_populate(), and OVERLAY_wireframe_cache_populate().
| blender::gpu::Batch * DRW_cache_mesh_edge_detection_get | ( | Object * | ob, |
| bool * | r_is_manifold ) |
Definition at line 2870 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_edge_detection_get(), and blender::draw::overlay::Outline::object_sync().
| blender::gpu::Batch * DRW_cache_mesh_face_wireframe_get | ( | Object * | ob | ) |
Definition at line 2936 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_face_wireframe_get(), and blender::draw::overlay::Wireframe::object_sync().
| blender::gpu::Batch * DRW_cache_mesh_loose_edges_get | ( | Object * | ob | ) |
Definition at line 2863 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_loose_edges_get(), blender::draw::overlay::Wireframe::object_sync(), OVERLAY_wireframe_cache_populate(), and populate_cache_for_instance().
| blender::gpu::Batch * DRW_cache_mesh_surface_edges_get | ( | Object * | ob | ) |
Definition at line 2884 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::draw::overlay::Paints::object_sync(), and OVERLAY_paint_vertex_cache_populate().
| blender::gpu::Batch * DRW_cache_mesh_surface_get | ( | Object * | ob | ) |
Definition at line 2877 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_surface_get(), blender::draw::overlay::Meshes::edit_object_sync(), blender::draw::overlay::Outline::object_sync(), blender::draw::overlay::Paints::object_sync(), blender::draw::overlay::Prepass::object_sync(), OVERLAY_edit_mesh_cache_populate(), OVERLAY_paint_texture_cache_populate(), OVERLAY_paint_vertex_cache_populate(), and populate_cache_for_instance().
| blender::gpu::Batch * DRW_cache_mesh_surface_mesh_analysis_get | ( | Object * | ob | ) |
Definition at line 2943 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::draw::overlay::Meshes::edit_object_sync(), and OVERLAY_edit_mesh_cache_populate().
| blender::gpu::Batch * DRW_cache_mesh_surface_sculptcolors_get | ( | Object * | ob | ) |
Definition at line 2922 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::workbench::Instance::mesh_sync().
| blender::gpu::Batch ** DRW_cache_mesh_surface_shaded_get | ( | Object * | ob, |
| GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len ) |
Return list of batches with length equal to max(1, totcol).
Definition at line 2891 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by DRW_cache_object_surface_material_get(), and blender::draw::overlay::Prepass::object_sync().
| blender::gpu::Batch ** DRW_cache_mesh_surface_texpaint_get | ( | Object * | ob | ) |
Return list of batches with length equal to max(1, totcol).
Definition at line 2901 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::workbench::Instance::mesh_sync().
| blender::gpu::Batch * DRW_cache_mesh_surface_texpaint_single_get | ( | Object * | ob | ) |
Definition at line 2908 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::workbench::Instance::mesh_sync(), blender::draw::overlay::Paints::object_sync(), and OVERLAY_paint_texture_cache_populate().
| blender::gpu::Batch * DRW_cache_mesh_surface_vertpaint_get | ( | Object * | ob | ) |
Definition at line 2915 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::workbench::Instance::mesh_sync().
| blender::gpu::Batch * DRW_cache_mesh_surface_viewer_attribute_get | ( | Object * | ob | ) |
Definition at line 2950 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by populate_cache_for_geometry().
| blender::gpu::Batch * DRW_cache_mesh_surface_weights_get | ( | Object * | ob | ) |
Definition at line 2929 of file draw_cache.cc.
References BLI_assert, Object::data, OB_MESH, and Object::type.
Referenced by blender::draw::overlay::Meshes::edit_object_sync(), blender::draw::overlay::Paints::object_sync(), and OVERLAY_paint_vertex_cache_populate().
| blender::gpu::Batch * DRW_cache_normal_arrow_get | ( | ) |
Definition at line 776 of file draw_cache.cc.
References DRWShapeCache::drw_normal_arrow, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), and SHC.
Referenced by OVERLAY_edit_mesh_cache_populate().
| blender::gpu::Batch * DRW_cache_object_all_edges_get | ( | Object * | ob | ) |
Definition at line 863 of file draw_cache.cc.
References DRW_cache_mesh_all_edges_get(), OB_MESH, and Object::type.
Referenced by basic_cache_populate().
| blender::gpu::Batch * DRW_cache_object_edge_detection_get | ( | Object * | ob, |
| bool * | r_is_manifold ) |
Definition at line 874 of file draw_cache.cc.
References DRW_cache_mesh_edge_detection_get(), OB_MESH, and Object::type.
Referenced by blender::workbench::ShadowPass::object_sync(), and OVERLAY_outline_cache_populate().
Definition at line 884 of file draw_cache.cc.
References DRW_cache_mesh_face_wireframe_get(), OB_GREASE_PENCIL, OB_MESH, OB_POINTCLOUD, OB_VOLUME, and Object::type.
Referenced by OVERLAY_wireframe_cache_populate().
| blender::gpu::Batch * DRW_cache_object_loose_edges_get | ( | Object * | ob | ) |
Definition at line 901 of file draw_cache.cc.
References DRW_cache_mesh_loose_edges_get(), OB_MESH, and Object::type.
Definition at line 936 of file draw_cache.cc.
References BKE_object_get_evaluated_mesh_no_subsurf_unchecked(), BLI_assert, Object::data, OB_CURVES, OB_CURVES_LEGACY, OB_FONT, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, and Object::type.
Referenced by basic_cache_populate(), basic_object_surface_material_get(), blender::eevee::MaterialModule::material_array_get(), blender::workbench::Instance::mesh_sync(), and blender::draw::overlay::Prepass::object_sync().
| blender::gpu::VertBuf * DRW_cache_object_pos_vertbuf_get | ( | Object * | ob | ) |
Returns the vertbuf used by shaded surface batch.
Definition at line 921 of file draw_cache.cc.
References BKE_object_get_evaluated_mesh_no_subsurf_unchecked(), Object::data, OB_MESH, and Object::type.
Referenced by blender::eevee::VelocityModule::step_object_sync().
| blender::gpu::Batch * DRW_cache_object_surface_get | ( | Object * | ob | ) |
Definition at line 911 of file draw_cache.cc.
References DRW_cache_mesh_surface_get(), OB_MESH, and Object::type.
Referenced by basic_cache_populate(), external_cache_populate(), blender::workbench::Instance::mesh_sync(), blender::draw::overlay::Facing::object_sync(), blender::draw::overlay::Fade::object_sync(), blender::draw::overlay::ModeTransfer::object_sync(), blender::workbench::ShadowPass::object_sync(), OVERLAY_facing_cache_populate(), OVERLAY_fade_cache_populate(), OVERLAY_mode_transfer_cache_populate(), OVERLAY_outline_cache_populate(), and OVERLAY_pose_cache_populate().
| blender::gpu::Batch ** DRW_cache_object_surface_material_get | ( | Object * | ob, |
| GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len ) |
Definition at line 969 of file draw_cache.cc.
References DRW_cache_mesh_surface_shaded_get(), OB_MESH, and Object::type.
Referenced by basic_object_surface_material_get(), blender::workbench::Instance::mesh_sync(), and blender::eevee::SyncModule::sync_mesh().
| blender::gpu::Batch * DRW_cache_particles_get_dots | ( | Object * | object, |
| ParticleSystem * | psys ) |
Definition at line 3114 of file draw_cache.cc.
Referenced by blender::draw::overlay::Particles::object_sync(), and OVERLAY_particle_cache_populate().
| blender::gpu::Batch * DRW_cache_particles_get_edit_inner_points | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| PTCacheEdit * | edit ) |
Definition at line 3129 of file draw_cache.cc.
Referenced by blender::draw::overlay::Particles::edit_object_sync(), and OVERLAY_edit_particle_cache_populate().
| blender::gpu::Batch * DRW_cache_particles_get_edit_strands | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| PTCacheEdit * | edit, | ||
| bool | use_weight ) |
Definition at line 3120 of file draw_cache.cc.
Referenced by blender::draw::overlay::Particles::edit_object_sync(), and OVERLAY_edit_particle_cache_populate().
| blender::gpu::Batch * DRW_cache_particles_get_edit_tip_points | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| PTCacheEdit * | edit ) |
Definition at line 3137 of file draw_cache.cc.
Referenced by blender::draw::overlay::Particles::edit_object_sync(), and OVERLAY_edit_particle_cache_populate().
| blender::gpu::Batch * DRW_cache_particles_get_hair | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| ModifierData * | md ) |
Definition at line 3106 of file draw_cache.cc.
Referenced by basic_cache_populate_particles(), external_cache_populate(), blender::draw::overlay::Particles::object_sync(), blender::draw::overlay::Prepass::particle_sync(), and wireframe_hair_cache_populate().
| blender::gpu::Batch * DRW_cache_particles_get_prim | ( | int | type | ) |
Definition at line 3145 of file draw_cache.cc.
References BLI_assert, CIRCLE_RESOL, cosf, DRWShapeCache::drw_particle_axis, DRWShapeCache::drw_particle_circle, DRWShapeCache::drw_particle_cross, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, PART_DRAW_AXIS, PART_DRAW_CIRC, PART_DRAW_CROSS, SHC, sinf, v, VCLASS_EMPTY_AXES, VCLASS_SCREENALIGNED, x, and y.
Referenced by OVERLAY_particle_cache_populate().
| blender::gpu::Batch * DRW_cache_plain_axes_get | ( | ) |
Definition at line 987 of file draw_cache.cc.
References DRWShapeCache::drw_plain_axes, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * drw_cache_procedural_lines_get | ( | ) |
Definition at line 201 of file draw_cache.cc.
References DRWShapeCache::drw_procedural_lines, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), and SHC.
Referenced by DRW_shgroup_call_procedural_indirect(), DRW_shgroup_call_procedural_lines(), blender::draw::command::procedural_batch_get(), and blender::draw::detail::PassBase< DrawCommandBufType >::procedural_batch_get().
| blender::gpu::Batch * drw_cache_procedural_points_get | ( | ) |
Definition at line 186 of file draw_cache.cc.
References DRWShapeCache::drw_procedural_verts, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_POINTS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), and SHC.
Referenced by DRW_shgroup_call_procedural_indirect(), DRW_shgroup_call_procedural_points(), blender::draw::command::procedural_batch_get(), and blender::draw::detail::PassBase< DrawCommandBufType >::procedural_batch_get().
| blender::gpu::Batch * drw_cache_procedural_triangle_strips_get | ( | ) |
Definition at line 230 of file draw_cache.cc.
References DRWShapeCache::drw_procedural_tri_strips, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_STRIP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), and SHC.
Referenced by DRW_shgroup_call_procedural_indirect(), blender::draw::command::procedural_batch_get(), and blender::draw::detail::PassBase< DrawCommandBufType >::procedural_batch_get().
| blender::gpu::Batch * drw_cache_procedural_triangles_get | ( | ) |
Definition at line 216 of file draw_cache.cc.
References DRWShapeCache::drw_procedural_tris, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), and SHC.
Referenced by DRW_shgroup_call_procedural_indirect(), DRW_shgroup_call_procedural_triangles(), blender::draw::command::procedural_batch_get(), and blender::draw::detail::PassBase< DrawCommandBufType >::procedural_batch_get().
| blender::gpu::Batch * DRW_cache_quad_get | ( | ) |
Definition at line 424 of file draw_cache.cc.
References DRWShapeCache::drw_quad, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_TRI_STRIP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by blender::gpu::tests::blend_test(), edit_text_cache_populate_cursor(), edit_text_cache_populate_select(), external_cache_image_add(), OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_image_camera_cache_populate(), and OVERLAY_image_empty_cache_populate().
| blender::gpu::Batch * DRW_cache_quad_wires_get | ( | ) |
Definition at line 444 of file draw_cache.cc.
References DRWShapeCache::drw_quad_wires, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINE_STRIP, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), and OVERLAY_grid_cache_init().
| blender::gpu::Batch * DRW_cache_single_arrow_get | ( | ) |
Definition at line 1029 of file draw_cache.cc.
References DRWShapeCache::drw_single_arrow, extra_vert_format(), flag, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_speaker_get | ( | ) |
Definition at line 1740 of file draw_cache.cc.
References attr_id, copy_v3_fl3(), cosf, DRWShapeCache::drw_speaker, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, pos, SHC, sinf, v, and z().
Referenced by OVERLAY_extra_cache_init().
| blender::gpu::Batch * DRW_cache_sphere_get | ( | const eDRWLevelOfDetail | level_of_detail | ) |
Definition at line 518 of file draw_cache.cc.
References BLI_assert, DRW_LOD_HIGH, DRW_LOD_LOW, DRW_LOD_MAX, DRW_LOD_MEDIUM, DRWShapeCache::drw_sphere_lod, DRW_SPHERE_SHAPE_LATITUDE_HIGH, DRW_SPHERE_SHAPE_LATITUDE_LOW, DRW_SPHERE_SHAPE_LATITUDE_MEDIUM, DRW_SPHERE_SHAPE_LONGITUDE_HIGH, DRW_SPHERE_SHAPE_LONGITUDE_LOW, DRW_SPHERE_SHAPE_LONGITUDE_MEDIUM, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), M_PI, SHC, sphere_lat_lon_vert(), and v.
Referenced by OVERLAY_extra_cache_init(), and blender::eevee::LookdevModule::sync().
| blender::gpu::Batch * DRW_cache_surf_edge_wire_get | ( | Object * | ob | ) |
Definition at line 3025 of file draw_cache.cc.
References BLI_assert, Object::data, OB_SURF, and Object::type.
Referenced by blender::draw::overlay::Wireframe::object_sync(), and OVERLAY_wireframe_cache_populate().
| blender::gpu::Batch * DRW_cache_text_edge_wire_get | ( | Object * | ob | ) |
Definition at line 3011 of file draw_cache.cc.
References BLI_assert, Object::data, OB_FONT, and Object::type.
Referenced by drw_shgroup_custom_bone_curve(), blender::draw::overlay::Wireframe::object_sync(), OVERLAY_edit_text_cache_populate(), and OVERLAY_wireframe_cache_populate().
| void DRW_cdlayer_attr_aliases_add | ( | GPUVertFormat * | format, |
| const char * | base_name, | ||
| const int | data_type, | ||
| const char * | layer_name, | ||
| bool | is_active_render, | ||
| bool | is_active_layer ) |
Definition at line 3445 of file draw_cache.cc.
References CD_PROP_FLOAT2, GPU_MAX_SAFE_ATTR_NAME, GPU_vertformat_alias_add(), GPU_vertformat_safe_attr_name(), and SNPRINTF.
Referenced by blender::draw::pbvh::attribute_format().
| blender::gpu::Batch * DRW_gpencil_dummy_buffer_get | ( | ) |
Definition at line 838 of file draw_cache.cc.
References DRWShapeCache::drw_gpencil_dummy_quad, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_U32, GPU_FETCH_INT, GPU_PRIM_TRI_FAN, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), and SHC.
| void DRW_shape_cache_free | ( | ) |
Definition at line 170 of file draw_cache.cc.
References batch, GPU_BATCH_DISCARD_SAFE, and SHC.
Referenced by blender::gpu::tests::blend_test(), DRW_engines_free(), blender::draw::test_draw_pass_all_commands(), blender::draw::test_draw_pass_multi_draw(), blender::draw::test_draw_pass_simple_draw(), blender::draw::test_draw_pass_sortable(), blender::draw::test_draw_resource_id_gen(), and blender::draw::test_draw_visibility().
|
static |
Definition at line 251 of file draw_cache.cc.
References GPU_COMP_F32, GPU_COMP_I32, GPU_FETCH_FLOAT, GPU_FETCH_INT, and GPU_vertformat_attr_add().
Referenced by DRW_cache_bone_arrows_get(), DRW_cache_camera_distances_get(), DRW_cache_camera_frame_get(), DRW_cache_camera_tria_get(), DRW_cache_camera_tria_wire_get(), DRW_cache_camera_volume_get(), DRW_cache_camera_volume_wire_get(), DRW_cache_circle_get(), DRW_cache_cube_get(), DRW_cache_empty_cone_get(), DRW_cache_empty_cube_get(), DRW_cache_empty_cylinder_get(), DRW_cache_field_cone_limit_get(), DRW_cache_field_curve_get(), DRW_cache_field_force_get(), DRW_cache_field_sphere_limit_get(), DRW_cache_field_tube_limit_get(), DRW_cache_field_vortex_get(), DRW_cache_field_wind_get(), DRW_cache_groundline_get(), DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_icon_inner_lines_get(), DRW_cache_light_icon_outer_lines_get(), DRW_cache_light_icon_sun_rays_get(), DRW_cache_light_point_lines_get(), DRW_cache_light_spot_lines_get(), DRW_cache_light_spot_volume_get(), DRW_cache_light_sun_lines_get(), DRW_cache_lightprobe_cube_get(), DRW_cache_lightprobe_grid_get(), DRW_cache_lightprobe_planar_get(), DRW_cache_particles_get_prim(), DRW_cache_plain_axes_get(), DRW_cache_quad_get(), DRW_cache_quad_wires_get(), DRW_cache_single_arrow_get(), DRW_cache_sphere_get(), and sphere_wire_vbo().
|
static |
Definition at line 1444 of file draw_cache.cc.
Referenced by DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_spot_lines_get(), DRW_cache_lightprobe_cube_get(), and DRW_cache_lightprobe_grid_get().
|
static |
Definition at line 509 of file draw_cache.cc.
References cosf, GPU_vertbuf_vert_set(), sinf, VCLASS_EMPTY_SCALED, x, y, and z().
Referenced by DRW_cache_sphere_get().
|
static |
Definition at line 346 of file draw_cache.cc.
References cosf, extra_vert_format(), flag, float, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertbuf_vert_set(), M_PI, NSEGMENTS, sinf, and v.
Referenced by DRW_cache_bone_point_wire_outline_get(), and DRW_cache_empty_sphere_get().
|
static |
Definition at line 2505 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get(), and blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Definition at line 700 of file draw_cache.cc.
Referenced by DRW_cache_bone_box_get().
|
static |
Definition at line 638 of file draw_cache.cc.
Referenced by DRW_cache_bone_box_get(), DRW_cache_camera_volume_get(), and DRW_cache_cube_get().
|
static |
Definition at line 615 of file draw_cache.cc.
Referenced by DRW_cache_bone_box_get(), DRW_cache_camera_volume_get(), DRW_cache_camera_volume_wire_get(), DRW_cache_cube_get(), and DRW_cache_empty_cube_get().
|
static |
Definition at line 626 of file draw_cache.cc.
Referenced by DRW_cache_camera_volume_wire_get(), and DRW_cache_empty_cube_get().
|
static |
Store indices of generated verts from bone_box_solid_tris to define adjacency infos. See bone_octahedral_solid_tris for more infos.
Definition at line 662 of file draw_cache.cc.
Referenced by DRW_cache_bone_box_wire_get().
|
static |
Definition at line 2037 of file draw_cache.cc.
Referenced by DRW_cache_bone_octahedral_get().
|
static |
Definition at line 1984 of file draw_cache.cc.
Referenced by DRW_cache_bone_octahedral_get().
|
static |
Definition at line 1962 of file draw_cache.cc.
Referenced by DRW_cache_bone_octahedral_get().
|
static |
Store indices of generated verts from bone_octahedral_solid_tris to define adjacency infos. Example: triangle {2, 1, 0} is adjacent to {3, 2, 0}, {1, 4, 0} and {5, 1, 2}. {2, 1, 0} becomes {0, 1, 2} {3, 2, 0} becomes {3, 4, 5} {1, 4, 0} becomes {9, 10, 11} {5, 1, 2} becomes {12, 13, 14} According to opengl specification it becomes (starting from the first vertex of the first face aka. vertex 2): {0, 12, 1, 10, 2, 3}
Definition at line 2007 of file draw_cache.cc.
Referenced by DRW_cache_bone_octahedral_wire_get().
|
static |
Referenced by DRW_cache_bone_arrows_get(), DRW_cache_bone_box_get(), DRW_cache_bone_box_wire_get(), DRW_cache_bone_dof_lines_get(), DRW_cache_bone_dof_sphere_get(), DRW_cache_bone_envelope_outline_get(), DRW_cache_bone_envelope_solid_get(), DRW_cache_bone_octahedral_get(), DRW_cache_bone_octahedral_wire_get(), DRW_cache_bone_point_get(), DRW_cache_bone_point_wire_outline_get(), DRW_cache_bone_stick_get(), DRW_cache_camera_distances_get(), DRW_cache_camera_frame_get(), DRW_cache_camera_tria_get(), DRW_cache_camera_tria_wire_get(), DRW_cache_camera_volume_get(), DRW_cache_camera_volume_wire_get(), DRW_cache_circle_get(), DRW_cache_cube_get(), DRW_cache_cursor_get(), DRW_cache_empty_capsule_body_get(), DRW_cache_empty_capsule_cap_get(), DRW_cache_empty_cone_get(), DRW_cache_empty_cube_get(), DRW_cache_empty_cylinder_get(), DRW_cache_empty_sphere_get(), DRW_cache_field_cone_limit_get(), DRW_cache_field_curve_get(), DRW_cache_field_force_get(), DRW_cache_field_sphere_limit_get(), DRW_cache_field_tube_limit_get(), DRW_cache_field_vortex_get(), DRW_cache_field_wind_get(), DRW_cache_fullscreen_quad_get(), DRW_cache_grid_get(), DRW_cache_groundline_get(), DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_icon_inner_lines_get(), DRW_cache_light_icon_outer_lines_get(), DRW_cache_light_icon_sun_rays_get(), DRW_cache_light_point_lines_get(), DRW_cache_light_spot_lines_get(), DRW_cache_light_spot_volume_get(), DRW_cache_light_sun_lines_get(), DRW_cache_lightprobe_cube_get(), DRW_cache_lightprobe_grid_get(), DRW_cache_lightprobe_planar_get(), DRW_cache_normal_arrow_get(), DRW_cache_particles_get_prim(), DRW_cache_plain_axes_get(), drw_cache_procedural_lines_get(), drw_cache_procedural_points_get(), drw_cache_procedural_triangle_strips_get(), drw_cache_procedural_triangles_get(), DRW_cache_quad_get(), DRW_cache_quad_wires_get(), DRW_cache_single_arrow_get(), DRW_cache_speaker_get(), DRW_cache_sphere_get(), DRW_gpencil_dummy_buffer_get(), and DRW_shape_cache_free().
|
static |
Definition at line 2571 of file draw_cache.cc.
Referenced by DRW_cache_bone_dof_lines_get(), and DRW_cache_bone_dof_sphere_get().
|
static |
Definition at line 2461 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get(), and blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Definition at line 2473 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get(), and blender::draw::overlay::ShapeCache::ShapeCache().
|
static |
Definition at line 2487 of file draw_cache.cc.
Referenced by DRW_cache_bone_arrows_get(), and blender::draw::overlay::ShapeCache::ShapeCache().