|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | DRWVolumeGrid |
Typedefs | |
| typedef enum eDRWLevelOfDetail | eDRWLevelOfDetail |
| typedef struct DRWVolumeGrid | DRWVolumeGrid |
Enumerations | |
| enum | eDRWLevelOfDetail { DRW_LOD_LOW = 0 , DRW_LOD_MEDIUM = 1 , DRW_LOD_HIGH = 2 , DRW_LOD_MAX } |
| typedef struct DRWVolumeGrid DRWVolumeGrid |
| typedef enum eDRWLevelOfDetail eDRWLevelOfDetail |
| enum eDRWLevelOfDetail |
| Enumerator | |
|---|---|
| DRW_LOD_LOW | |
| DRW_LOD_MEDIUM | |
| DRW_LOD_HIGH | |
| DRW_LOD_MAX | |
Definition at line 36 of file draw_cache.h.
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct GPUBatch** DRW_cache_curve_surface_shaded_get | ( | struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
Definition at line 925 of file draw_cache_impl_gpencil.c.
References GpencilBatchCache::edit_curve_handles_batch, gpencil_batch_cache_get(), gpencil_batches_ensure(), and gpencil_edit_batches_ensure().
Referenced by OVERLAY_edit_gpencil_cache_populate().
Definition at line 934 of file draw_cache_impl_gpencil.c.
References GpencilBatchCache::edit_curve_points_batch, gpencil_batch_cache_get(), gpencil_batches_ensure(), and gpencil_edit_batches_ensure().
Referenced by OVERLAY_edit_gpencil_cache_populate().
Definition at line 907 of file draw_cache_impl_gpencil.c.
References GpencilBatchCache::edit_lines_batch, gpencil_batch_cache_get(), gpencil_batches_ensure(), and gpencil_edit_batches_ensure().
Referenced by OVERLAY_edit_gpencil_cache_populate().
Definition at line 916 of file draw_cache_impl_gpencil.c.
References GpencilBatchCache::edit_points_batch, gpencil_batch_cache_get(), gpencil_batches_ensure(), and gpencil_edit_batches_ensure().
Referenced by OVERLAY_edit_gpencil_cache_populate().
Definition at line 489 of file draw_cache_impl_gpencil.c.
References BKE_gpencil_visible_stroke_iter(), Object::data, DEG_get_ctime(), DRWContextState::depsgraph, DRW_context_state_get(), gpIterData::gpd, gpencil_batch_cache_get(), gpencil_batches_ensure(), gpencil_lines_indices_cb(), GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_indexbuf_build(), GPU_indexbuf_init_ex(), GPU_PRIM_LINE_STRIP, GPU_vertbuf_get_vertex_len(), gpIterData::ibo, GpencilBatchCache::lines_batch, NULL, and GpencilBatchCache::vbo.
Referenced by DRW_cache_object_face_wireframe_get().
Definition at line 465 of file draw_cache_impl_gpencil.c.
References GpencilBatchCache::fill_batch, gpencil_batch_cache_get(), and gpencil_batches_ensure().
Referenced by gpencil_stroke_cache_populate().
| void DRW_cache_gpencil_sbuffer_clear | ( | struct Object * | ob | ) |
Definition at line 662 of file draw_cache_impl_gpencil.c.
References Object::data, GPU_BATCH_DISCARD_SAFE, MEM_SAFE_FREE, bGPdata::runtime, bGPdata_Runtime::sbuffer_fill_batch, bGPdata_Runtime::sbuffer_gps, and bGPdata_Runtime::sbuffer_stroke_batch.
Referenced by GPENCIL_draw_scene(), and GPENCIL_draw_scene_depth_only().
Definition at line 652 of file draw_cache_impl_gpencil.c.
References Object::data, gpencil_sbuffer_stroke_ensure(), bGPdata::runtime, and bGPdata_Runtime::sbuffer_fill_batch.
Referenced by gpencil_stroke_cache_populate().
| struct bGPDstroke* DRW_cache_gpencil_sbuffer_stroke_data_get | ( | struct Object * | ob | ) |
Definition at line 526 of file draw_cache_impl_gpencil.c.
References bGPDstroke::aspect_ratio, bGPDstroke::caps, copy_v2_v2(), copy_v4_v4(), Object::data, bGPDstroke::fill_opacity_fac, bGPDstroke::flag, GP_STROKE_CAP_ROUND, bGPDstroke::hardeness, if(), bGPDstroke::mat_nr, bGPdata_Runtime::matid, max_ii(), MEM_callocN, NULL, bGPDstroke::runtime, bGPdata::runtime, bGPdata_Runtime::sbuffer_brush, bGPdata_Runtime::sbuffer_gps, bGPdata_Runtime::sbuffer_sflag, bGPdata_Runtime::sbuffer_used, bGPDstroke_Runtime::stroke_start, bGPDstroke::thickness, bGPDstroke::tot_triangles, bGPDstroke::totpoints, bGPDstroke::vert_color_fill, and bGPdata_Runtime::vert_color_fill.
Referenced by GPENCIL_cache_init().
Definition at line 644 of file draw_cache_impl_gpencil.c.
References Object::data, gpencil_sbuffer_stroke_ensure(), bGPdata::runtime, and bGPdata_Runtime::sbuffer_stroke_batch.
Referenced by gpencil_stroke_cache_populate().
Definition at line 457 of file draw_cache_impl_gpencil.c.
References gpencil_batch_cache_get(), gpencil_batches_ensure(), and GpencilBatchCache::stroke_batch.
Referenced by gpencil_stroke_cache_populate().
| struct 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().
| struct 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().
| struct GPUBatch** DRW_cache_hair_surface_shaded_get | ( | struct Object * | ob, |
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct GPUBatch** DRW_cache_mball_surface_shaded_get | ( | struct 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().
| struct GPUBatch** DRW_cache_mesh_surface_shaded_get | ( | struct 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().
| struct 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().
| struct GPUVertBuf* DRW_cache_object_pos_vertbuf_get | ( | struct 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().
| struct 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().
| struct GPUBatch* DRW_cache_particles_get_dots | ( | struct Object * | object, |
| struct ParticleSystem * | psys | ||
| ) |
Definition at line 3337 of file draw_cache.c.
References DRW_particles_batch_cache_get_dots().
Referenced by OVERLAY_particle_cache_populate().
| struct GPUBatch* DRW_cache_particles_get_edit_inner_points | ( | struct Object * | object, |
| struct 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().
| struct GPUBatch* DRW_cache_particles_get_edit_strands | ( | struct Object * | object, |
| struct 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().
| struct GPUBatch* DRW_cache_particles_get_edit_tip_points | ( | struct Object * | object, |
| struct 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().
| struct GPUBatch* DRW_cache_particles_get_hair | ( | struct Object * | object, |
| struct ParticleSystem * | psys, | ||
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct 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().
| struct GPUBatch** DRW_cache_surf_surface_shaded_get | ( | struct 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().
| struct GPUBatch** DRW_cache_text_surface_shaded_get | ( | struct 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().
| struct 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().
| DRWVolumeGrid* DRW_volume_batch_cache_get_grid | ( | struct Volume * | volume, |
| const struct VolumeGrid * | grid | ||
| ) |
Referenced by eevee_volume_object_grids_init(), and workbench_volume_object_cache_populate().