|
Blender
V2.93
|
#include "DNA_curve_types.h"#include "DNA_hair_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.h"#include "BLI_math.h"#include "BLI_utildefines.h"#include "BKE_object.h"#include "BKE_paint.h"#include "GPU_batch.h"#include "GPU_batch_utils.h"#include "MEM_guardedalloc.h"#include "draw_cache.h"#include "draw_cache_impl.h"#include "draw_manager.h"Go to the source code of this file.
Classes | |
| struct | Vert |
| struct | VertShaded |
| struct | DRWShapeCache |
Typedefs | |
| typedef struct Vert | Vert |
| typedef struct VertShaded | VertShaded |
Variables | |
| static struct DRWShapeCache | SHC = {NULL} |
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) |
| GPUBatch * | DRW_cache_groundline_get (void) |
| GPUBatch * | DRW_cache_light_point_lines_get (void) |
| GPUBatch * | DRW_cache_light_sun_lines_get (void) |
| GPUBatch * | DRW_cache_light_spot_lines_get (void) |
| GPUBatch * | DRW_cache_light_spot_volume_get (void) |
| GPUBatch * | DRW_cache_light_area_disk_lines_get (void) |
| GPUBatch * | DRW_cache_light_area_square_lines_get (void) |
Common | |
| static const float | bone_box_verts [8][3] |
| static const float | bone_box_smooth_normals [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 (GPUVertBuf *vbo, int *vert_idx, int segments, float radius, float z, int flag) |
| static void | circle_dashed_verts (GPUVertBuf *vbo, int *vert_idx, int segments, float radius, float z, int flag) |
| GPUBatch * | DRW_cache_cube_get (void) |
| GPUBatch * | DRW_cache_circle_get (void) |
| GPUBatch * | DRW_cache_normal_arrow_get (void) |
| #define CIRCLE_NSEGMENTS 32 |
Definition at line 1455 of file draw_cache.c.
| #define CIRCLE_RESOL 64 |
| #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 2370 of file draw_cache.c.
| #define COL_HEAD (1 << 1) |
Definition at line 2368 of file draw_cache.c.
| #define COL_TAIL (1 << 2) |
Definition at line 2369 of file draw_cache.c.
| #define COL_WIRE (1 << 0) |
Definition at line 2367 of file draw_cache.c.
| #define DIAMOND_NSEGMENTS 4 |
Definition at line 1452 of file draw_cache.c.
| #define DRW_SPHERE_SHAPE_LATITUDE_HIGH 80 |
Definition at line 77 of file draw_cache.c.
| #define DRW_SPHERE_SHAPE_LATITUDE_LOW 32 |
Definition at line 71 of file draw_cache.c.
| #define DRW_SPHERE_SHAPE_LATITUDE_MEDIUM 64 |
Definition at line 74 of file draw_cache.c.
| #define DRW_SPHERE_SHAPE_LONGITUDE_HIGH 60 |
Definition at line 78 of file draw_cache.c.
| #define DRW_SPHERE_SHAPE_LONGITUDE_LOW 24 |
Definition at line 72 of file draw_cache.c.
| #define DRW_SPHERE_SHAPE_LONGITUDE_MEDIUM 48 |
Definition at line 75 of file draw_cache.c.
| #define INNER_NSEGMENTS 8 |
Definition at line 1453 of file draw_cache.c.
| #define MARKER_FILL_LAYER 6 |
Definition at line 2515 of file draw_cache.c.
| #define MARKER_LEN (sizeof(axis_marker) / (sizeof(float[2]))) |
Definition at line 2514 of file draw_cache.c.
| #define NSEGMENTS 32 |
| #define NSEGMENTS 8 |
| #define NSEGMENTS 12 |
| #define NSEGMENTS 24 /* Must be multiple of 2. */ |
| #define OUTER_NSEGMENTS 10 |
Definition at line 1454 of file draw_cache.c.
| #define POS_BONE (1 << 6) |
Definition at line 2374 of file draw_cache.c.
| #define POS_HEAD (1 << 4) |
Definition at line 2372 of file draw_cache.c.
| #define POS_TAIL (1 << 5) |
Definition at line 2373 of file draw_cache.c.
| #define S_X 0.0215f |
Definition at line 2491 of file draw_cache.c.
| #define S_X 0.0175f |
Definition at line 2491 of file draw_cache.c.
| #define S_X 0.02f |
Definition at line 2491 of file draw_cache.c.
| #define S_X 0.007f |
Definition at line 2491 of file draw_cache.c.
| #define S_Y 0.025f |
Definition at line 2492 of file draw_cache.c.
| #define S_Y 0.025f |
Definition at line 2492 of file draw_cache.c.
| #define S_Y 0.025f |
Definition at line 2492 of file draw_cache.c.
| #define S_Y 0.007f |
Definition at line 2492 of file draw_cache.c.
| #define set_vert | ( | a, | |
| b, | |||
| quarter | |||
| ) |
Definition at line 2578 of file draw_cache.c.
| #define SIDE_STIPPLE 32 |
| #define SIDE_STIPPLE 32 |
| #define SPIRAL_RESOL 32 |
| #define VCLASS_CAMERA_DIST (1 << 6) |
Definition at line 57 of file draw_cache.c.
| #define VCLASS_CAMERA_FRAME (1 << 5) |
Definition at line 56 of file draw_cache.c.
| #define VCLASS_CAMERA_VOLUME (1 << 7) |
Definition at line 58 of file draw_cache.c.
| #define VCLASS_EMPTY_AXES (1 << 11) |
Definition at line 64 of file draw_cache.c.
| #define VCLASS_EMPTY_AXES_NAME (1 << 12) |
Definition at line 65 of file draw_cache.c.
| #define VCLASS_EMPTY_AXES_SHADOW (1 << 13) |
Definition at line 66 of file draw_cache.c.
| #define VCLASS_EMPTY_SCALED (1 << 10) |
Definition at line 63 of file draw_cache.c.
| #define VCLASS_EMPTY_SIZE (1 << 14) |
Definition at line 67 of file draw_cache.c.
| #define VCLASS_LIGHT_AREA_SHAPE (1 << 0) |
Definition at line 50 of file draw_cache.c.
| #define VCLASS_LIGHT_DIST (1 << 4) |
Definition at line 54 of file draw_cache.c.
| #define VCLASS_LIGHT_SPOT_BLEND (1 << 2) |
Definition at line 52 of file draw_cache.c.
| #define VCLASS_LIGHT_SPOT_CONE (1 << 3) |
Definition at line 53 of file draw_cache.c.
| #define VCLASS_LIGHT_SPOT_SHAPE (1 << 1) |
Definition at line 51 of file draw_cache.c.
| #define VCLASS_SCREENALIGNED (1 << 9) |
Definition at line 61 of file draw_cache.c.
| #define VCLASS_SCREENSPACE (1 << 8) |
Definition at line 60 of file draw_cache.c.
| #define X_LEN (sizeof(x_axis_name) / (sizeof(float[2]))) |
Definition at line 2455 of file draw_cache.c.
| #define Y_LEN (sizeof(y_axis_name) / (sizeof(float[2]))) |
Definition at line 2469 of file draw_cache.c.
| #define Z_LEN (sizeof(z_axis_name) / (sizeof(float[2]))) |
Definition at line 2487 of file draw_cache.c.
| typedef struct VertShaded VertShaded |
|
static |
Definition at line 226 of file draw_cache.c.
References GPU_vertbuf_attr_set().
Definition at line 2151 of file draw_cache.c.
Referenced by DRW_cache_bone_envelope_solid_get().
|
static |
Definition at line 568 of file draw_cache.c.
References Freestyle::a, angle(), Freestyle::c, cosf, 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_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_point_lines_get(), DRW_cache_light_spot_lines_get(), and DRW_cache_light_sun_lines_get().
|
static |
Definition at line 553 of file draw_cache.c.
References Freestyle::a, angle(), Freestyle::c, cosf, 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_point_lines_get(), DRW_cache_light_spot_lines_get(), DRW_cache_light_sun_lines_get(), DRW_cache_lightprobe_cube_get(), and DRW_cache_lightprobe_grid_get().
| void DRW_batch_cache_free_old | ( | Object * | ob, |
| int | ctime | ||
| ) |
Definition at line 3613 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), Object::data, DRW_mesh_batch_cache_free_old(), OB_CURVE, OB_FONT, OB_MESH, OB_SURF, and Object::type.
Referenced by DRW_cache_free_old_batches().
| void drw_batch_cache_generate_requested | ( | Object * | ob | ) |
Definition at line 3573 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), 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_curve_batch_cache_create_requested(), DRW_mesh_batch_cache_create_requested(), DRW_object_is_in_edit_mode(), DRW_object_use_hide_faces(), DST, ELEM, OB_CURVE, OB_FONT, OB_MESH, OB_SURF, DRWContextState::obact, DRWContextState::object_edit, DRWContextState::object_mode, scene, DRWContextState::scene, DRWManager::task_graph, and Object::type.
Referenced by drw_duplidata_free(), drw_engines_cache_populate(), DRW_render_object_iter(), and drw_task_graph_deinit().
| void drw_batch_cache_generate_requested_delayed | ( | Object * | ob | ) |
Definition at line 3608 of file draw_cache.c.
References BLI_gset_add(), DRWManager::delayed_extraction, and DST.
Referenced by drw_shgroup_bone_custom_solid(), and drw_shgroup_bone_custom_wire().
| void drw_batch_cache_validate | ( | Object * | ob | ) |
Definition at line 3538 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), Object::data, DRW_curve_batch_cache_validate(), DRW_hair_batch_cache_validate(), DRW_lattice_batch_cache_validate(), DRW_mball_batch_cache_validate(), DRW_mesh_batch_cache_validate(), DRW_pointcloud_batch_cache_validate(), DRW_volume_batch_cache_validate(), NULL, OB_CURVE, OB_FONT, OB_HAIR, OB_LATTICE, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, and Object::type.
Referenced by DRW_draw_depth_object(), drw_duplidata_load(), drw_engines_cache_populate(), DRW_render_object_iter(), drw_shgroup_bone_custom_solid(), and drw_shgroup_bone_custom_wire().
| GPUBatch* DRW_cache_bone_arrows_get | ( | void | ) |
Definition at line 2519 of file draw_cache.c.
References axis_marker, DRWShapeCache::drw_bone_arrows, extra_vert_format(), 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(), NULL, 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().
| GPUBatch* DRW_cache_bone_box_get | ( | void | ) |
Definition at line 2091 of file draw_cache.c.
References attr_id, bone_box_smooth_normals, 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, NULL, pos, and SHC.
Referenced by DRW_cache_bone_box_wire_get(), and OVERLAY_armature_cache_init().
| GPUBatch* DRW_cache_bone_box_wire_get | ( | void | ) |
Definition at line 2124 of file draw_cache.c.
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, GPUBatch, and SHC.
Referenced by OVERLAY_armature_cache_init().
| GPUBatch* DRW_cache_bone_dof_lines_get | ( | void | ) |
Definition at line 2638 of file draw_cache.c.
References Freestyle::a, 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, NULL, pos, set_vert, SHC, sinf, staticSine, v, x, and y.
Referenced by OVERLAY_armature_cache_init().
| GPUBatch* DRW_cache_bone_dof_sphere_get | ( | void | ) |
Definition at line 2585 of file draw_cache.c.
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(), NULL, pos, set_vert, SHC, staticSine, v, x, and z.
Referenced by OVERLAY_armature_cache_init().
| GPUBatch* DRW_cache_bone_envelope_outline_get | ( | void | ) |
Definition at line 2208 of file draw_cache.c.
References Freestyle::a, 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, NULL, SHC, sinf, v, v1, and v2.
Referenced by OVERLAY_armature_cache_init().
| GPUBatch* DRW_cache_bone_envelope_solid_get | ( | void | ) |
Definition at line 2158 of file draw_cache.c.
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, NULL, pos, and SHC.
Referenced by OVERLAY_armature_cache_init().
| GPUBatch* DRW_cache_bone_octahedral_get | ( | void | ) |
Definition at line 2030 of file draw_cache.c.
References attr_id, bone_octahedral_smooth_normals, 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, NULL, pos, and SHC.
Referenced by DRW_cache_bone_octahedral_wire_get(), and OVERLAY_armature_cache_init().
| GPUBatch* DRW_cache_bone_octahedral_wire_get | ( | void | ) |
Definition at line 2066 of file draw_cache.c.
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, GPUBatch, and SHC.
Referenced by OVERLAY_armature_cache_init().
| GPUBatch* DRW_cache_bone_point_get | ( | void | ) |
Definition at line 2253 of file draw_cache.c.
References Freestyle::a, 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, NULL, pos, SHC, sinf, and v.
Referenced by OVERLAY_armature_cache_init().
| GPUBatch* DRW_cache_bone_point_wire_outline_get | ( | void | ) |
Definition at line 2328 of file draw_cache.c.
References Freestyle::a, 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, NULL, pos, SHC, sinf, sphere_wire_vbo(), and v.
Referenced by OVERLAY_armature_cache_init(), and OVERLAY_metaball_cache_init().
| GPUBatch* DRW_cache_bone_stick_get | ( | void | ) |
Definition at line 2376 of file draw_cache.c.
References Freestyle::a, attr_id, CIRCLE_RESOL, COL_BONE, COL_HEAD, COL_TAIL, COL_WIRE, copy_v2_fl(), cosf, DRWShapeCache::drw_bone_stick, ELEM, 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().
| GPUBatch* DRW_cache_camera_distances_get | ( | void | ) |
Definition at line 2803 of file draw_cache.c.
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(), NULL, SHC, v, VCLASS_CAMERA_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_camera_frame_get | ( | void | ) |
Definition at line 2678 of file draw_cache.c.
References Freestyle::a, 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(), NULL, SHC, v, VCLASS_CAMERA_FRAME, x, and y.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_camera_tria_get | ( | void | ) |
Definition at line 2783 of file draw_cache.c.
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(), NULL, SHC, v, and VCLASS_CAMERA_FRAME.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_camera_tria_wire_get | ( | void | ) |
Definition at line 2759 of file draw_cache.c.
References Freestyle::a, 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(), NULL, SHC, v, VCLASS_CAMERA_FRAME, x, and y.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_camera_volume_get | ( | void | ) |
Definition at line 2710 of file draw_cache.c.
References Freestyle::a, ARRAY_SIZE, bone_box_solid_tris, bone_box_verts, DRWShapeCache::drw_camera_volume, 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(), NULL, SHC, v, VCLASS_CAMERA_FRAME, VCLASS_CAMERA_VOLUME, x, y, and z.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_camera_volume_wire_get | ( | void | ) |
Definition at line 2735 of file draw_cache.c.
References ARRAY_SIZE, bone_box_verts, bone_box_wire, DRWShapeCache::drw_camera_volume_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(), NULL, SHC, v, VCLASS_CAMERA_FRAME, VCLASS_CAMERA_VOLUME, x, y, and z.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_circle_get | ( | void | ) |
Definition at line 733 of file draw_cache.c.
References Freestyle::a, 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, NULL, SHC, sinf, v, VCLASS_EMPTY_SCALED, x, y, and z.
Referenced by overlay_edit_mesh_add_ob_to_pass(), and OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_cube_get | ( | void | ) |
Definition at line 700 of file draw_cache.c.
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 OVERLAY_background_cache_init(), workbench_volume_modifier_cache_populate(), and workbench_volume_object_cache_populate().
| GPUBatch* DRW_cache_cursor_get | ( | bool | crosshair_lines | ) |
Definition at line 3438 of file draw_cache.c.
References angle(), attr_id, 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(), GPUBatch, M_PI, NULL, pos, SHC, sinf, TH_VIEW_OVERLAY, UI_GetThemeColor3ubv(), v, x, and y.
Referenced by DRW_draw_cursor(), and DRW_draw_cursor_2d().
Definition at line 3007 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_batch_cache_get_edge_detection(), DRW_mesh_batch_cache_get_edge_detection(), NULL, OB_CURVE, and Object::type.
Referenced by DRW_cache_object_edge_detection_get().
Definition at line 2942 of file draw_cache.c.
References BLI_assert, Object::data, DRW_curve_batch_cache_get_normal_edge(), OB_CURVE, and Object::type.
Referenced by OVERLAY_edit_curve_cache_populate().
Definition at line 2950 of file draw_cache.c.
References BLI_assert, Object::data, DRW_curve_batch_cache_get_edit_edges(), ELEM, OB_CURVE, OB_SURF, and Object::type.
Referenced by OVERLAY_edit_curve_cache_populate(), and OVERLAY_edit_surf_cache_populate().
Definition at line 2929 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_batch_cache_get_wire_edge(), DRW_mesh_batch_cache_get_loose_edges(), NULL, OB_CURVE, and Object::type.
Referenced by OVERLAY_edit_curve_cache_populate(), and OVERLAY_wireframe_cache_populate().
Definition at line 2994 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_batch_cache_get_wireframes_face(), DRW_mesh_batch_cache_get_wireframes_face(), NULL, OB_CURVE, and Object::type.
Referenced by DRW_cache_object_face_wireframe_get().
Definition at line 2979 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_mesh_batch_cache_get_loose_edges(), NULL, OB_CURVE, Object::type, and UNUSED_VARS.
Referenced by DRW_cache_object_loose_edges_get().
Definition at line 2966 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_batch_cache_get_triangles_with_normals(), DRW_mesh_batch_cache_get_surface(), NULL, OB_CURVE, and Object::type.
Referenced by DRW_cache_object_surface_get().
| GPUBatch** DRW_cache_curve_surface_shaded_get | ( | Object * | ob, |
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
Definition at line 3020 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_batch_cache_get_surface_shaded(), DRW_mesh_batch_cache_get_surface_shaded(), NULL, OB_CURVE, and Object::type.
Referenced by DRW_cache_object_surface_material_get().
Definition at line 2958 of file draw_cache.c.
References BLI_assert, Object::data, DRW_curve_batch_cache_get_edit_verts(), ELEM, OB_CURVE, OB_SURF, and Object::type.
Referenced by OVERLAY_edit_curve_cache_populate(), and OVERLAY_edit_surf_cache_populate().
| GPUBatch* DRW_cache_empty_capsule_body_get | ( | void | ) |
Definition at line 1170 of file draw_cache.c.
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(), NULL, pos, and SHC.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_empty_capsule_cap_get | ( | void | ) |
Definition at line 1203 of file draw_cache.c.
References angle(), 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, NULL, pos, SHC, sinf, and v.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_empty_cone_get | ( | void | ) |
Definition at line 1090 of file draw_cache.c.
References angle(), cosf, DRWShapeCache::drw_empty_cone, extra_vert_format(), 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, NULL, SHC, sinf, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_empty_cube_get | ( | void | ) |
Definition at line 1023 of file draw_cache.c.
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(), NULL, SHC, v, VCLASS_EMPTY_SCALED, x, y, and z.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_empty_cylinder_get | ( | void | ) |
Definition at line 1129 of file draw_cache.c.
References angle(), cosf, DRWShapeCache::drw_empty_cylinder, extra_vert_format(), 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, NULL, SHC, sinf, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_empty_sphere_get | ( | void | ) |
Definition at line 1081 of file draw_cache.c.
References DRWShapeCache::drw_empty_sphere, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, NULL, SHC, sphere_wire_vbo(), and VCLASS_EMPTY_SCALED.
Referenced by drw_debug_draw_spheres(), and OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_field_cone_limit_get | ( | void | ) |
Definition at line 1390 of file draw_cache.c.
References Freestyle::a, angle(), circle_dashed_verts(), CIRCLE_RESOL, cosf, DRWShapeCache::drw_field_cone_limit, extra_vert_format(), 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, NULL, SHC, SIDE_STIPPLE, sinf, v, VCLASS_EMPTY_SIZE, and z.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_field_curve_get | ( | void | ) |
Definition at line 1336 of file draw_cache.c.
References CIRCLE_RESOL, circle_verts(), DRWShapeCache::drw_field_curve, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), NULL, SHC, v, VCLASS_EMPTY_SIZE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_field_force_get | ( | void | ) |
Definition at line 1283 of file draw_cache.c.
References CIRCLE_RESOL, circle_verts(), DRWShapeCache::drw_field_force, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), NULL, SHC, v, VCLASS_EMPTY_SIZE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_field_sphere_limit_get | ( | void | ) |
Definition at line 1425 of file draw_cache.c.
References circle_dashed_verts(), CIRCLE_RESOL, DRWShapeCache::drw_field_sphere_limit, extra_vert_format(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), NULL, SHC, v, VCLASS_EMPTY_SIZE, and VCLASS_SCREENALIGNED.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_field_tube_limit_get | ( | void | ) |
Definition at line 1356 of file draw_cache.c.
References Freestyle::a, angle(), circle_dashed_verts(), CIRCLE_RESOL, cosf, DRWShapeCache::drw_field_tube_limit, extra_vert_format(), 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, NULL, SHC, SIDE_STIPPLE, sinf, v, VCLASS_EMPTY_SIZE, and z.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_field_vortex_get | ( | void | ) |
Definition at line 1306 of file draw_cache.c.
References Freestyle::a, angle(), cosf, DRWShapeCache::drw_field_vortex, extra_vert_format(), 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, NULL, r, SHC, sinf, SPIRAL_RESOL, v, and VCLASS_EMPTY_SIZE.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_field_wind_get | ( | void | ) |
Definition at line 1260 of file draw_cache.c.
References CIRCLE_RESOL, circle_verts(), DRWShapeCache::drw_field_wind, extra_vert_format(), float(), GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_PRIM_LINES, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), NULL, SHC, v, VCLASS_EMPTY_SIZE, and z.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_fullscreen_quad_get | ( | void | ) |
Definition at line 358 of file draw_cache.c.
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(), NULL, pos, and SHC.
Referenced by DRW_transform_none(), eevee_create_bloom_pass(), EEVEE_effects_cache_init(), EEVEE_lightbake_cache_init(), EEVEE_lightprobes_cache_init(), EEVEE_materials_cache_init(), EEVEE_mist_output_init(), EEVEE_occlusion_output_init(), EEVEE_renderpasses_cache_finish(), EEVEE_shadow_output_init(), EEVEE_temporal_sampling_cache_init(), and EEVEE_volumes_output_init().
| GPUBatch* DRW_cache_grid_get | ( | void | ) |
Definition at line 434 of file draw_cache.c.
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(), NULL, pos, and SHC.
Referenced by OVERLAY_grid_cache_init().
| GPUBatch* DRW_cache_groundline_get | ( | void | ) |
Definition at line 1476 of file draw_cache.c.
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(), NULL, SHC, and v.
Referenced by OVERLAY_extra_cache_init().
Definition at line 3284 of file draw_cache.c.
References BLI_assert, Object::data, DRW_lattice_batch_cache_get_edit_verts(), OB_LATTICE, and Object::type.
Referenced by OVERLAY_edit_lattice_cache_populate().
Definition at line 3262 of file draw_cache.c.
References BLI_assert, Object::data, DRW_lattice_batch_cache_get_all_verts(), OB_LATTICE, and Object::type.
Definition at line 3270 of file draw_cache.c.
References Object::actdef, BLI_assert, Object::data, Object::defbase, DRW_lattice_batch_cache_get_all_edges(), Lattice::dvert, Lattice::editlatt, ListBase::first, EditLatt::latt, OB_LATTICE, and Object::type.
Referenced by OVERLAY_edit_lattice_cache_populate(), and OVERLAY_lattice_cache_populate().
| GPUBatch* DRW_cache_light_area_disk_lines_get | ( | void | ) |
Definition at line 1628 of file draw_cache.c.
References circle_dashed_verts(), 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(), INNER_NSEGMENTS, light_distance_z_get(), NULL, OUTER_NSEGMENTS, r, SHC, v, VCLASS_LIGHT_AREA_SHAPE, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_light_area_square_lines_get | ( | void | ) |
Definition at line 1660 of file draw_cache.c.
References Freestyle::a, circle_dashed_verts(), circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_area_square_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(), INNER_NSEGMENTS, light_distance_z_get(), NULL, OUTER_NSEGMENTS, r, SHC, v, VCLASS_LIGHT_AREA_SHAPE, VCLASS_LIGHT_DIST, VCLASS_SCREENSPACE, x, and y.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_light_point_lines_get | ( | void | ) |
Definition at line 1497 of file draw_cache.c.
References circle_dashed_verts(), CIRCLE_NSEGMENTS, circle_verts(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_point_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, NULL, OUTER_NSEGMENTS, r, SHC, v, VCLASS_LIGHT_AREA_SHAPE, VCLASS_SCREENALIGNED, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_light_spot_lines_get | ( | void | ) |
Definition at line 1555 of file draw_cache.c.
References Freestyle::a, angle(), Freestyle::c, circle_dashed_verts(), CIRCLE_NSEGMENTS, circle_verts(), cosf, DIAMOND_NSEGMENTS, DRWShapeCache::drw_light_spot_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(), INNER_NSEGMENTS, light_distance_z_get(), M_PI, NULL, OUTER_NSEGMENTS, r, 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().
| GPUBatch* DRW_cache_light_spot_volume_get | ( | void | ) |
Definition at line 1601 of file draw_cache.c.
References Freestyle::a, angle(), Freestyle::c, CIRCLE_NSEGMENTS, cosf, DRWShapeCache::drw_light_spot_volume, extra_vert_format(), 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, NULL, SHC, sinf, v, and VCLASS_LIGHT_SPOT_SHAPE.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_light_sun_lines_get | ( | void | ) |
Definition at line 1521 of file draw_cache.c.
References Freestyle::a, angle(), Freestyle::c, circle_dashed_verts(), circle_verts(), cosf, DIAMOND_NSEGMENTS, 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(), INNER_NSEGMENTS, M_PI, NULL, OUTER_NSEGMENTS, r, SHC, sinf, v, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_lightprobe_cube_get | ( | void | ) |
Definition at line 1774 of file draw_cache.c.
References circle_verts(), copy_v2_v2(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_lightprobe_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(), light_distance_z_get(), NULL, r, SHC, v, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_lightprobe_grid_get | ( | void | ) |
Definition at line 1828 of file draw_cache.c.
References add_v2_v2v2(), circle_verts(), copy_v2_v2(), DIAMOND_NSEGMENTS, DRWShapeCache::drw_lightprobe_grid, 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(), mul_v2_v2fl(), NULL, r, SHC, v, VCLASS_LIGHT_DIST, and VCLASS_SCREENSPACE.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_lightprobe_planar_get | ( | void | ) |
Definition at line 1890 of file draw_cache.c.
References Freestyle::a, 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(), NULL, r, SHC, v, VCLASS_SCREENSPACE, x, and y.
Referenced by OVERLAY_extra_cache_init().
Definition at line 3047 of file draw_cache.c.
References BLI_assert, DRW_metaball_batch_cache_get_edge_detection(), OB_MBALL, and Object::type.
Referenced by DRW_cache_object_edge_detection_get().
Definition at line 3053 of file draw_cache.c.
References BLI_assert, DRW_metaball_batch_cache_get_wireframes_face(), OB_MBALL, and Object::type.
Referenced by DRW_cache_object_face_wireframe_get().
Definition at line 3041 of file draw_cache.c.
References BLI_assert, DRW_metaball_batch_cache_get_triangles_with_normals(), OB_MBALL, and Object::type.
Referenced by DRW_cache_object_surface_get().
| GPUBatch** DRW_cache_mball_surface_shaded_get | ( | Object * | ob, |
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
Definition at line 3059 of file draw_cache.c.
References BLI_assert, Object::data, DRW_metaball_batch_cache_get_surface_shaded(), OB_MBALL, and Object::type.
Referenced by DRW_cache_object_surface_material_get().
Definition at line 2841 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_all_edges(), OB_MESH, and Object::type.
Referenced by DRW_cache_object_all_edges_get().
Definition at line 2835 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_all_verts(), OB_MESH, and Object::type.
Referenced by OVERLAY_paint_vertex_cache_populate(), and OVERLAY_wireframe_cache_populate().
Definition at line 2853 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_edge_detection(), OB_MESH, and Object::type.
Referenced by DRW_cache_object_edge_detection_get().
Definition at line 2911 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_wireframes_face(), OB_MESH, and Object::type.
Referenced by DRW_cache_object_face_wireframe_get().
Definition at line 2847 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_loose_edges(), OB_MESH, and Object::type.
Referenced by DRW_cache_object_loose_edges_get(), and OVERLAY_wireframe_cache_populate().
Definition at line 2865 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_surface_edges(), OB_MESH, and Object::type.
Referenced by OVERLAY_paint_vertex_cache_populate().
Definition at line 2859 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_surface(), OB_MESH, and Object::type.
Referenced by DRW_cache_object_surface_get(), OVERLAY_edit_mesh_cache_populate(), OVERLAY_paint_texture_cache_populate(), and OVERLAY_paint_vertex_cache_populate().
Definition at line 2917 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_edit_mesh_analysis(), OB_MESH, and Object::type.
Referenced by OVERLAY_edit_mesh_cache_populate().
Definition at line 2899 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_surface_sculpt(), OB_MESH, and Object::type.
Referenced by workbench_cache_common_populate().
| GPUBatch** DRW_cache_mesh_surface_shaded_get | ( | Object * | ob, |
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
Definition at line 2872 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_surface_shaded(), OB_MESH, and Object::type.
Referenced by DRW_cache_object_surface_material_get().
Definition at line 2881 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_surface_texpaint(), OB_MESH, and Object::type.
Referenced by workbench_cache_common_populate(), and workbench_cache_texpaint_populate().
Definition at line 2887 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_surface_texpaint_single(), OB_MESH, and Object::type.
Referenced by OVERLAY_paint_texture_cache_populate(), and workbench_cache_texpaint_populate().
Definition at line 2893 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_surface_vertpaint(), OB_MESH, and Object::type.
Referenced by workbench_cache_common_populate().
Definition at line 2905 of file draw_cache.c.
References BLI_assert, Object::data, DRW_mesh_batch_cache_get_surface_weights(), OB_MESH, and Object::type.
Referenced by OVERLAY_paint_vertex_cache_populate().
| GPUBatch* DRW_cache_normal_arrow_get | ( | void | ) |
Definition at line 756 of file draw_cache.c.
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(), NULL, and SHC.
Referenced by OVERLAY_edit_mesh_cache_populate().
Definition at line 799 of file draw_cache.c.
References DRW_cache_mesh_all_edges_get(), NULL, OB_MESH, and Object::type.
Referenced by basic_cache_populate(), and drw_shgroup_bone_custom_wire().
Definition at line 811 of file draw_cache.c.
References DRW_cache_curve_edge_detection_get(), DRW_cache_mball_edge_detection_get(), DRW_cache_mesh_edge_detection_get(), DRW_cache_surf_edge_detection_get(), DRW_cache_text_edge_detection_get(), NULL, OB_CURVE, OB_FONT, OB_HAIR, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, and Object::type.
Referenced by drw_shgroup_bone_custom_solid(), OVERLAY_outline_cache_populate(), and workbench_shadow_cache_populate().
Definition at line 835 of file draw_cache.c.
References DRW_cache_curve_face_wireframe_get(), DRW_cache_gpencil_face_wireframe_get(), DRW_cache_mball_face_wireframe_get(), DRW_cache_mesh_face_wireframe_get(), DRW_cache_surf_face_wireframe_get(), DRW_cache_text_face_wireframe_get(), DRW_cache_volume_face_wireframe_get(), DRW_pointcloud_batch_cache_get_dots(), NULL, OB_CURVE, OB_FONT, OB_GPENCIL, OB_HAIR, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, and Object::type.
Referenced by OVERLAY_wireframe_cache_populate().
Definition at line 862 of file draw_cache.c.
References DRW_cache_curve_loose_edges_get(), DRW_cache_mesh_loose_edges_get(), DRW_cache_surf_loose_edges_get(), DRW_cache_text_loose_edges_get(), NULL, OB_CURVE, OB_FONT, OB_HAIR, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, and Object::type.
Referenced by drw_shgroup_bone_custom_solid().
| int DRW_cache_object_material_count_get | ( | struct Object * | ob | ) |
Definition at line 936 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_material_count_get(), DRW_hair_material_count_get(), DRW_mesh_material_count_get(), DRW_metaball_material_count_get(), DRW_pointcloud_material_count_get(), DRW_volume_material_count_get(), NULL, OB_CURVE, OB_FONT, OB_HAIR, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, type, and Object::type.
Referenced by EEVEE_cryptomatte_cache_populate(), EEVEE_materials_cache_populate(), workbench_cache_common_populate(), workbench_cache_sculpt_populate(), workbench_cache_texpaint_populate(), and workbench_object_surface_material_get().
| GPUVertBuf* DRW_cache_object_pos_vertbuf_get | ( | Object * | ob | ) |
Definition at line 911 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), Object::data, DRW_curve_batch_cache_pos_vertbuf_get(), DRW_mball_batch_cache_pos_vertbuf_get(), DRW_mesh_batch_cache_pos_vertbuf_get(), NULL, OB_CURVE, OB_FONT, OB_HAIR, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, type, and Object::type.
Referenced by EEVEE_motion_blur_cache_populate().
Definition at line 886 of file draw_cache.c.
References DRW_cache_curve_surface_get(), DRW_cache_mball_surface_get(), DRW_cache_mesh_surface_get(), DRW_cache_pointcloud_surface_get(), DRW_cache_surf_surface_get(), DRW_cache_text_surface_get(), NULL, OB_CURVE, OB_FONT, OB_HAIR, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, and Object::type.
Referenced by basic_cache_populate(), drw_shgroup_bone_custom_solid(), EEVEE_cryptomatte_cache_populate(), EEVEE_motion_blur_cache_populate(), external_cache_populate(), OVERLAY_facing_cache_populate(), OVERLAY_fade_cache_populate(), OVERLAY_outline_cache_populate(), OVERLAY_pose_cache_populate(), workbench_cache_common_populate(), and workbench_shadow_cache_populate().
| GPUBatch** DRW_cache_object_surface_material_get | ( | struct Object * | ob, |
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
Definition at line 969 of file draw_cache.c.
References DRW_cache_curve_surface_shaded_get(), DRW_cache_mball_surface_shaded_get(), DRW_cache_mesh_surface_shaded_get(), DRW_cache_pointcloud_surface_shaded_get(), DRW_cache_surf_surface_shaded_get(), DRW_cache_text_surface_shaded_get(), NULL, OB_CURVE, OB_FONT, OB_HAIR, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, and Object::type.
Referenced by EEVEE_cryptomatte_cache_populate(), EEVEE_materials_cache_populate(), and workbench_object_surface_material_get().
| GPUBatch* DRW_cache_particles_get_dots | ( | Object * | object, |
| ParticleSystem * | psys | ||
| ) |
Definition at line 3337 of file draw_cache.c.
References DRW_particles_batch_cache_get_dots().
Referenced by OVERLAY_particle_cache_populate().
| GPUBatch* DRW_cache_particles_get_edit_inner_points | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| struct PTCacheEdit * | edit | ||
| ) |
Definition at line 3350 of file draw_cache.c.
References DRW_particles_batch_cache_get_edit_inner_points().
Referenced by OVERLAY_edit_particle_cache_populate().
| GPUBatch* DRW_cache_particles_get_edit_strands | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| struct PTCacheEdit * | edit, | ||
| bool | use_weight | ||
| ) |
Definition at line 3342 of file draw_cache.c.
References DRW_particles_batch_cache_get_edit_strands().
Referenced by OVERLAY_edit_particle_cache_populate().
| GPUBatch* DRW_cache_particles_get_edit_tip_points | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| struct PTCacheEdit * | edit | ||
| ) |
Definition at line 3357 of file draw_cache.c.
References DRW_particles_batch_cache_get_edit_tip_points().
Referenced by OVERLAY_edit_particle_cache_populate().
| GPUBatch* DRW_cache_particles_get_hair | ( | Object * | object, |
| ParticleSystem * | psys, | ||
| ModifierData * | md | ||
| ) |
Definition at line 3332 of file draw_cache.c.
References DRW_particles_batch_cache_get_hair().
Referenced by basic_cache_populate(), external_cache_populate(), and wireframe_hair_cache_populate().
| GPUBatch* DRW_cache_particles_get_prim | ( | int | type | ) |
Definition at line 3364 of file draw_cache.c.
References Freestyle::a, angle(), BLI_assert, CIRCLE_RESOL, cosf, DRWShapeCache::drw_particle_axis, DRWShapeCache::drw_particle_circle, DRWShapeCache::drw_particle_cross, extra_vert_format(), Lattice::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, NULL, PART_DRAW_AXIS, PART_DRAW_CIRC, PART_DRAW_CROSS, SHC, sinf, type, v, VCLASS_EMPTY_AXES, VCLASS_SCREENALIGNED, x, and y.
Referenced by OVERLAY_particle_cache_populate().
| GPUBatch* DRW_cache_plain_axes_get | ( | void | ) |
Definition at line 1001 of file draw_cache.c.
References DRWShapeCache::drw_plain_axes, 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(), NULL, SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
Definition at line 3298 of file draw_cache.c.
References BLI_assert, DRW_pointcloud_batch_cache_get_dots(), OB_POINTCLOUD, and Object::type.
Definition at line 3304 of file draw_cache.c.
References BLI_assert, DRW_pointcloud_batch_cache_get_surface(), OB_POINTCLOUD, and Object::type.
Referenced by DRW_cache_object_surface_get().
| GPUBatch* drw_cache_procedural_lines_get | ( | void | ) |
Definition at line 184 of file draw_cache.c.
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(), NULL, and SHC.
Referenced by DRW_shgroup_call_procedural_lines().
| GPUBatch* drw_cache_procedural_points_get | ( | void | ) |
Definition at line 170 of file draw_cache.c.
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(), NULL, and SHC.
Referenced by DRW_shgroup_call_procedural_points().
| GPUBatch* drw_cache_procedural_triangles_get | ( | void | ) |
Definition at line 198 of file draw_cache.c.
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(), NULL, and SHC.
Referenced by DRW_shgroup_call_procedural_triangles().
| GPUBatch* DRW_cache_quad_get | ( | void | ) |
Definition at line 392 of file draw_cache.c.
References Freestyle::a, DRWShapeCache::drw_quad, extra_vert_format(), 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(), NULL, SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by edit_text_cache_populate_cursor(), edit_text_cache_populate_select(), EEVEE_lightprobes_cache_init(), image_cache_image_add(), OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), OVERLAY_grid_cache_init(), OVERLAY_image_camera_cache_populate(), OVERLAY_image_empty_cache_populate(), and workbench_volume_modifier_cache_populate().
| GPUBatch* DRW_cache_quad_wires_get | ( | void | ) |
Definition at line 413 of file draw_cache.c.
References Freestyle::a, DRWShapeCache::drw_quad_wires, 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(), NULL, SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_edit_uv_cache_init(), OVERLAY_extra_cache_init(), and OVERLAY_grid_cache_init().
| GPUBatch* DRW_cache_single_arrow_get | ( | void | ) |
Definition at line 1043 of file draw_cache.c.
References Freestyle::a, DRWShapeCache::drw_single_arrow, 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(), NULL, SHC, v, and VCLASS_EMPTY_SCALED.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_speaker_get | ( | void | ) |
Definition at line 1709 of file draw_cache.c.
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, NULL, pos, r, SHC, sinf, v, x, y, and z.
Referenced by OVERLAY_extra_cache_init().
| GPUBatch* DRW_cache_sphere_get | ( | const eDRWLevelOfDetail | level_of_detail | ) |
Definition at line 487 of file draw_cache.c.
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, NULL, SHC, sphere_lat_lon_vert(), and v.
Referenced by eevee_lookdev_hdri_preview_init(), and OVERLAY_extra_cache_init().
Definition at line 3213 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_batch_cache_get_edge_detection(), DRW_mesh_batch_cache_get_edge_detection(), NULL, OB_SURF, and Object::type.
Referenced by DRW_cache_object_edge_detection_get().
Definition at line 3187 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_batch_cache_get_wire_edge(), DRW_mesh_batch_cache_get_loose_edges(), NULL, OB_SURF, and Object::type.
Referenced by OVERLAY_wireframe_cache_populate().
Definition at line 3200 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_batch_cache_get_wireframes_face(), DRW_mesh_batch_cache_get_wireframes_face(), NULL, OB_SURF, and Object::type.
Referenced by DRW_cache_object_face_wireframe_get().
Definition at line 3225 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_mesh_batch_cache_get_loose_edges(), NULL, OB_SURF, Object::type, and UNUSED_VARS.
Referenced by DRW_cache_object_loose_edges_get().
Definition at line 3174 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_batch_cache_get_triangles_with_normals(), DRW_mesh_batch_cache_get_surface(), NULL, OB_SURF, and Object::type.
Referenced by DRW_cache_object_surface_get().
| GPUBatch** DRW_cache_surf_surface_shaded_get | ( | Object * | ob, |
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
Definition at line 3241 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, Object::data, DRW_curve_batch_cache_get_surface_shaded(), DRW_mesh_batch_cache_get_surface_shaded(), NULL, OB_SURF, and Object::type.
Referenced by DRW_cache_object_surface_material_get().
Definition at line 3106 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, CU_FAST, Object::data, DRW_curve_batch_cache_get_edge_detection(), DRW_mesh_batch_cache_get_edge_detection(), Curve::editfont, Curve::flag, NULL, OB_FONT, and Object::type.
Referenced by DRW_cache_object_edge_detection_get().
Definition at line 3074 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, CU_BACK, CU_FRONT, Object::data, DRW_curve_batch_cache_get_wire_edge(), DRW_mesh_batch_cache_get_loose_edges(), Curve::ext1, Curve::ext2, Curve::flag, NULL, OB_FONT, and Object::type.
Referenced by OVERLAY_edit_text_cache_populate().
Definition at line 3136 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, CU_FAST, Object::data, DRW_curve_batch_cache_get_wireframes_face(), DRW_mesh_batch_cache_get_wireframes_face(), Curve::editfont, Curve::flag, NULL, OB_FONT, and Object::type.
Referenced by DRW_cache_object_face_wireframe_get().
Definition at line 3121 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, CU_FAST, Object::data, DRW_curve_batch_cache_get_wire_edge(), DRW_mesh_batch_cache_get_loose_edges(), Curve::editfont, Curve::flag, NULL, OB_FONT, and Object::type.
Referenced by DRW_cache_object_loose_edges_get(), and OVERLAY_wireframe_cache_populate().
Definition at line 3091 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, CU_FAST, Object::data, DRW_curve_batch_cache_get_triangles_with_normals(), DRW_mesh_batch_cache_get_surface(), Curve::editfont, Curve::flag, NULL, OB_FONT, and Object::type.
Referenced by DRW_cache_object_surface_get().
| GPUBatch** DRW_cache_text_surface_shaded_get | ( | Object * | ob, |
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
Definition at line 3151 of file draw_cache.c.
References BKE_object_get_evaluated_mesh(), BLI_assert, CU_FAST, Object::data, DRW_curve_batch_cache_get_surface_shaded(), DRW_mesh_batch_cache_get_surface_shaded(), Curve::editfont, Curve::flag, NULL, OB_FONT, and Object::type.
Referenced by DRW_cache_object_surface_material_get().
Definition at line 3314 of file draw_cache.c.
References BLI_assert, Object::data, DRW_volume_batch_cache_get_wireframes_face(), OB_VOLUME, and Object::type.
Referenced by DRW_cache_object_face_wireframe_get().
Definition at line 3320 of file draw_cache.c.
References BLI_assert, Object::data, DRW_volume_batch_cache_get_selection_surface(), OB_VOLUME, and Object::type.
Referenced by OVERLAY_outline_volume(), and OVERLAY_volume_cache_populate().
| GPUBatch* DRW_gpencil_dummy_buffer_get | ( | void | ) |
Definition at line 779 of file draw_cache.c.
References DRWShapeCache::drw_gpencil_dummy_quad, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, GPU_COMP_U8, GPU_FETCH_INT, GPU_PRIM_TRI_FAN, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), NULL, and SHC.
Referenced by gpencil_dummy_buffer_get().
| void DRW_shape_cache_free | ( | void | ) |
Definition at line 156 of file draw_cache.c.
References batch, GPU_BATCH_DISCARD_SAFE, GPUBatch, and SHC.
Referenced by DRW_engines_free().
|
static |
Definition at line 218 of file draw_cache.c.
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_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 1457 of file draw_cache.c.
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 478 of file draw_cache.c.
References cosf, GPU_vertbuf_vert_set(), sinf, VCLASS_EMPTY_SCALED, x, y, and z.
Referenced by DRW_cache_sphere_get().
|
static |
Definition at line 313 of file draw_cache.c.
References angle(), cosf, extra_vert_format(), 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 |
|
static |
Definition at line 595 of file draw_cache.c.
Referenced by DRW_cache_bone_box_get().
|
static |
Definition at line 680 of file draw_cache.c.
Referenced by DRW_cache_bone_box_get().
|
static |
Definition at line 618 of file draw_cache.c.
Referenced by DRW_cache_bone_box_get(), DRW_cache_camera_volume_get(), and DRW_cache_cube_get().
|
static |
Definition at line 584 of file draw_cache.c.
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 606 of file draw_cache.c.
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 642 of file draw_cache.c.
Referenced by DRW_cache_bone_box_wire_get().
|
static |
Definition at line 1937 of file draw_cache.c.
Referenced by DRW_cache_bone_octahedral_get().
|
static |
Definition at line 2019 of file draw_cache.c.
Referenced by DRW_cache_bone_octahedral_get().
|
static |
Definition at line 1966 of file draw_cache.c.
Referenced by DRW_cache_bone_octahedral_get().
|
static |
Definition at line 1928 of file draw_cache.c.
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 1989 of file draw_cache.c.
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_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_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 2559 of file draw_cache.c.
Referenced by DRW_cache_bone_dof_lines_get(), and DRW_cache_bone_dof_sphere_get().
|
static |
|
static |
|
static |
Definition at line 2475 of file draw_cache.c.
Referenced by DRW_cache_bone_arrows_get().