|
Blender
V2.93
|
#include "BKE_mesh_types.h"Go to the source code of this file.
Enumerations | |
| enum | { VFLAG_VERT_ACTIVE = 1 << 0 , VFLAG_VERT_SELECTED = 1 << 1 , VFLAG_VERT_SELECTED_BEZT_HANDLE = 1 << 2 , VFLAG_EDGE_ACTIVE = 1 << 3 , VFLAG_EDGE_SELECTED = 1 << 4 , VFLAG_EDGE_SEAM = 1 << 5 , VFLAG_EDGE_SHARP = 1 << 6 , VFLAG_EDGE_FREESTYLE = 1 << 7 , VFLAG_VERT_GPENCIL_BEZT_HANDLE = 1 << 30 } |
| enum | { VFLAG_FACE_ACTIVE = 1 << 0 , VFLAG_FACE_SELECTED = 1 << 1 , VFLAG_FACE_FREESTYLE = 1 << 2 , VFLAG_VERT_UV_SELECT = 1 << 3 , VFLAG_VERT_UV_PINNED = 1 << 4 , VFLAG_EDGE_UV_SELECT = 1 << 5 , VFLAG_FACE_UV_ACTIVE = 1 << 6 , VFLAG_FACE_UV_SELECT = 1 << 7 } |
| anonymous enum |
Definition at line 223 of file draw_cache_impl.h.
| anonymous enum |
| Enumerator | |
|---|---|
| VFLAG_FACE_ACTIVE | |
| VFLAG_FACE_SELECTED | |
| VFLAG_FACE_FREESTYLE | |
| VFLAG_VERT_UV_SELECT | |
| VFLAG_VERT_UV_PINNED | |
| VFLAG_EDGE_UV_SELECT | |
| VFLAG_FACE_UV_ACTIVE | |
| VFLAG_FACE_UV_SELECT | |
Definition at line 237 of file draw_cache_impl.h.
| void DRW_batch_cache_free_old | ( | struct 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().
| struct GPUBatch** DRW_cache_pointcloud_surface_shaded_get | ( | struct Object * | ob, |
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
Referenced by DRW_cache_object_surface_material_get().
Definition at line 967 of file draw_cache_impl_curve.c.
References CurveBatchCache::batch, BLI_assert, CD_MASK_MLOOPUV, CD_MASK_TANGENT, CurveBatchCache::cd_needed, CurveBatchCache::cd_used, CU_DATATYPE_NORMAL, CU_DATATYPE_OVERLAY, CU_DATATYPE_SURFACE, CU_DATATYPE_WIRE, curve_batch_cache_get(), Object_Runtime::curve_cache, curve_create_curves_lines(), curve_create_curves_pos(), curve_create_edit_curves_nor(), curve_create_edit_data_and_handles(), curve_render_data_create(), curve_render_data_free(), CurveBatchCache::curves, CurveBatchCache::curves_lines, CurveBatchCache::curves_nor, CurveBatchCache::curves_pos, CurveBatchCache::curves_weight, CurveBatchCache::data, Object::data, CurveCache::disp, DRW_ADD_FLAG_FROM_IBO_REQUEST, DRW_ADD_FLAG_FROM_VBO_REQUEST, DRW_batch_requested(), DRW_displist_indexbuf_create_edges_adjacency_lines(), DRW_displist_indexbuf_create_lines_in_order(), DRW_displist_indexbuf_create_triangles_in_order(), DRW_displist_indexbuf_create_triangles_loop_split_by_material(), DRW_displist_vertbuf_create_loop_pos_and_nor_and_uv_and_tan(), DRW_displist_vertbuf_create_pos_and_nor(), DRW_displist_vertbuf_create_wiredata(), DRW_ibo_request(), DRW_ibo_requested(), DRW_vbo_request(), DRW_vbo_requested(), CurveBatchCache::edge_detection, CurveBatchCache::edge_fac, CurveBatchCache::edges_adj_lines, CurveBatchCache::edit, CurveBatchCache::edit_edges, CurveBatchCache::edit_lines, CurveBatchCache::edit_normals, CurveBatchCache::edit_verts, ELEM, GPU_BATCH_CLEAR_SAFE, GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_PRIM_LINES_ADJ, GPU_PRIM_POINTS, GPU_PRIM_TRIS, GPUBatch, CurveBatchCache::ibo, Object::id, CurveBatchCache::is_manifold, CurveBatchCache::loop_pos_nor, CurveBatchCache::loop_tan, CurveBatchCache::loop_uv, CurveBatchCache::mat_len, ID::name, OB_CURVE, CurveRenderData::ob_curve_cache, OB_FONT, OB_SURF, CurveBatchCache::ordered, CurveBatchCache::pos, CurveBatchCache::pos_nor, Object::runtime, scene, CurveBatchCache::surf_per_mat, CurveBatchCache::surf_per_mat_tris, CurveBatchCache::surfaces, CurveBatchCache::surfaces_edges, CurveBatchCache::surfaces_lines, CurveBatchCache::surfaces_tris, and Object::type.
Referenced by drw_batch_cache_generate_requested().
| void DRW_curve_batch_cache_dirty_tag | ( | struct Curve * | cu, |
| int | mode | ||
| ) |
Definition at line 488 of file draw_cache_impl_curve.c.
References CurveBatchCache::batch, Curve::batch_cache, BKE_CURVE_BATCH_DIRTY_ALL, BKE_CURVE_BATCH_DIRTY_SELECT, BLI_assert, CurveBatchCache::data, CurveBatchCache::edit, CurveBatchCache::edit_edges, CurveBatchCache::edit_verts, GPU_BATCH_DISCARD_SAFE, GPU_VERTBUF_DISCARD_SAFE, CurveBatchCache::is_dirty, and NULL.
Referenced by DRW_engines_register().
| void DRW_curve_batch_cache_free | ( | struct Curve * | cu | ) |
Definition at line 543 of file draw_cache_impl_curve.c.
References Curve::batch_cache, curve_batch_cache_clear(), and MEM_SAFE_FREE.
Referenced by DRW_engines_register().
| struct GPUBatch* DRW_curve_batch_cache_get_edge_detection | ( | struct Curve * | cu, |
| bool * | r_is_manifold | ||
| ) |
Definition at line 945 of file draw_cache_impl_curve.c.
References CurveBatchCache::batch, curve_batch_cache_get(), DRW_batch_request(), CurveBatchCache::edge_detection, and CurveBatchCache::is_manifold.
Referenced by DRW_cache_curve_edge_detection_get(), DRW_cache_surf_edge_detection_get(), and DRW_cache_text_edge_detection_get().
Definition at line 895 of file draw_cache_impl_curve.c.
References CurveBatchCache::batch, curve_batch_cache_get(), DRW_batch_request(), and CurveBatchCache::edit_edges.
Referenced by DRW_cache_curve_edge_overlay_get().
Definition at line 901 of file draw_cache_impl_curve.c.
References CurveBatchCache::batch, curve_batch_cache_get(), DRW_batch_request(), and CurveBatchCache::edit_verts.
Referenced by DRW_cache_curve_vert_overlay_get().
Definition at line 889 of file draw_cache_impl_curve.c.
References CurveBatchCache::batch, curve_batch_cache_get(), DRW_batch_request(), and CurveBatchCache::edit_normals.
Referenced by DRW_cache_curve_edge_normal_get().
| struct GPUBatch** DRW_curve_batch_cache_get_surface_shaded | ( | struct Curve * | cu, |
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
Definition at line 913 of file draw_cache_impl_curve.c.
References BLI_assert, CurveBatchCache::cd_needed, curve_batch_cache_get(), curve_cd_calc_used_gpu_layers(), DRW_batch_request(), CurveBatchCache::mat_len, and CurveBatchCache::surf_per_mat.
Referenced by DRW_cache_curve_surface_shaded_get(), DRW_cache_surf_surface_shaded_get(), and DRW_cache_text_surface_shaded_get().
Definition at line 907 of file draw_cache_impl_curve.c.
References CurveBatchCache::batch, curve_batch_cache_get(), DRW_batch_request(), and CurveBatchCache::surfaces.
Referenced by DRW_cache_curve_surface_get(), DRW_cache_surf_surface_get(), and DRW_cache_text_surface_get().
Definition at line 883 of file draw_cache_impl_curve.c.
References CurveBatchCache::batch, curve_batch_cache_get(), CurveBatchCache::curves, and DRW_batch_request().
Referenced by DRW_cache_curve_edge_wire_get(), DRW_cache_surf_edge_wire_get(), DRW_cache_text_edge_wire_get(), and DRW_cache_text_loose_edges_get().
Definition at line 939 of file draw_cache_impl_curve.c.
References CurveBatchCache::batch, curve_batch_cache_get(), DRW_batch_request(), and CurveBatchCache::surfaces_edges.
Referenced by DRW_cache_curve_face_wireframe_get(), DRW_cache_surf_face_wireframe_get(), and DRW_cache_text_face_wireframe_get().
| struct GPUVertBuf* DRW_curve_batch_cache_pos_vertbuf_get | ( | struct Curve * | cu | ) |
Definition at line 929 of file draw_cache_impl_curve.c.
References CurveBatchCache::batch, curve_batch_cache_get(), DRW_batch_request(), DRW_vbo_request(), CurveBatchCache::loop_pos_nor, NULL, CurveBatchCache::ordered, and CurveBatchCache::surfaces.
Referenced by DRW_cache_object_pos_vertbuf_get().
| void DRW_curve_batch_cache_validate | ( | struct Curve * | cu | ) |
Definition at line 475 of file draw_cache_impl_curve.c.
References curve_batch_cache_clear(), curve_batch_cache_init(), and curve_batch_cache_valid().
Referenced by drw_batch_cache_validate().
| int DRW_curve_material_count_get | ( | struct Curve * | cu | ) |
Definition at line 956 of file draw_cache_impl_curve.c.
References max_ii(), and Curve::totcol.
Referenced by curve_batch_cache_init(), curve_batch_cache_valid(), and DRW_cache_object_material_count_get().
| void DRW_displist_indexbuf_create_edges_adjacency_lines | ( | struct ListBase * | lb, |
| struct GPUIndexBuf * | ibo, | ||
| bool * | r_is_manifold | ||
| ) |
Definition at line 822 of file draw_cache_impl_displist.c.
References abs(), BLI_edgehash_free(), BLI_edgehash_new_ex(), BLI_edgehashIterator_free(), BLI_edgehashIterator_getKey(), BLI_edgehashIterator_getValue(), BLI_edgehashIterator_isDone(), BLI_edgehashIterator_new(), BLI_edgehashIterator_step(), curve_render_surface_tri_len_get(), curve_render_surface_vert_len_get(), displist_indexbufbuilder_set(), dl_vert_len(), GPU_indexbuf_add_line_adj_verts(), GPU_indexbuf_build_in_place(), GPU_indexbuf_init(), GPU_PRIM_LINES_ADJ, LISTBASE_FOREACH, NO_EDGE, NULL, POINTER_AS_INT, set_edges_adjacency_lines_indices(), SWAP, v1, and v2.
Referenced by DRW_curve_batch_cache_create_requested(), and mball_batch_cache_get_edges_adj_lines().
| void DRW_displist_indexbuf_create_lines_in_order | ( | struct ListBase * | lb, |
| struct GPUIndexBuf * | ibo | ||
| ) |
Definition at line 336 of file draw_cache_impl_displist.c.
References curve_render_surface_tri_len_get(), curve_render_surface_vert_len_get(), displist_indexbufbuilder_set(), dl_vert_len(), GPU_indexbuf_build_in_place(), GPU_indexbuf_init(), GPU_PRIM_LINES, LISTBASE_FOREACH, set_overlay_wires_quad_tri_indices(), and set_overlay_wires_tri_indices().
Referenced by DRW_curve_batch_cache_create_requested(), and DRW_metaball_batch_cache_get_wireframes_face().
| void DRW_displist_indexbuf_create_triangles_in_order | ( | struct ListBase * | lb, |
| struct GPUIndexBuf * | ibo | ||
| ) |
Definition at line 271 of file draw_cache_impl_displist.c.
References curve_render_surface_tri_len_get(), curve_render_surface_vert_len_get(), displist_indexbufbuilder_set(), dl_vert_len(), GPU_indexbuf_add_tri_verts(), GPU_indexbuf_build_in_place(), GPU_indexbuf_init(), GPU_PRIM_TRIS, and LISTBASE_FOREACH.
Referenced by DRW_curve_batch_cache_create_requested(), and DRW_metaball_batch_cache_get_triangles_with_normals().
| void DRW_displist_indexbuf_create_triangles_loop_split_by_material | ( | struct ListBase * | lb, |
| struct GPUIndexBuf ** | ibo_mat, | ||
| uint | mat_len | ||
| ) |
Definition at line 292 of file draw_cache_impl_displist.c.
References BLI_array_alloca, curve_render_surface_tri_len_get(), displist_indexbufbuilder_tess_set(), GPU_indexbuf_add_tri_verts(), GPU_indexbuf_build_in_place(), GPU_indexbuf_init(), GPU_PRIM_TRIS, and LISTBASE_FOREACH.
Referenced by DRW_curve_batch_cache_create_requested().
| void DRW_displist_vertbuf_create_loop_pos_and_nor_and_uv_and_tan | ( | struct ListBase * | lb, |
| struct GPUVertBuf * | vbo_pos_nor, | ||
| struct GPUVertBuf * | vbo_uv, | ||
| struct GPUVertBuf * | vbo_tan, | ||
| const struct Scene * | scene | ||
| ) |
Referenced by DRW_curve_batch_cache_create_requested().
| void DRW_displist_vertbuf_create_pos_and_nor | ( | struct ListBase * | lb, |
| struct GPUVertBuf * | vbo, | ||
| const struct Scene * | scene | ||
| ) |
Referenced by DRW_curve_batch_cache_create_requested(), and mball_batch_cache_get_pos_and_normals().
| void DRW_displist_vertbuf_create_wiredata | ( | struct ListBase * | lb, |
| struct GPUVertBuf * | vbo | ||
| ) |
Definition at line 265 of file draw_cache_impl_displist.c.
References curve_render_surface_vert_len_get(), and DRW_vertbuf_create_wiredata().
Referenced by DRW_curve_batch_cache_create_requested(), and DRW_metaball_batch_cache_get_wireframes_face().
| void DRW_gpencil_batch_cache_dirty_tag | ( | struct bGPdata * | gpd | ) |
Definition at line 154 of file draw_cache_impl_gpencil.c.
References bGPdata::flag, and GP_DATA_CACHE_IS_DIRTY.
Referenced by DRW_engines_register().
| void DRW_gpencil_batch_cache_free | ( | struct bGPdata * | gpd | ) |
Definition at line 159 of file draw_cache_impl_gpencil.c.
References bGPdata::flag, GP_DATA_CACHE_IS_DIRTY, gpencil_batch_cache_clear(), bGPdata_Runtime::gpencil_cache, MEM_SAFE_FREE, and bGPdata::runtime.
Referenced by DRW_engines_register().
| void DRW_hair_batch_cache_dirty_tag | ( | struct Hair * | hair, |
| int | mode | ||
| ) |
Definition at line 93 of file draw_cache_impl_hair.c.
References Hair::batch_cache, BKE_HAIR_BATCH_DIRTY_ALL, BLI_assert, HairBatchCache::is_dirty, and NULL.
Referenced by DRW_engines_register().
| void DRW_hair_batch_cache_free | ( | struct Hair * | hair | ) |
Definition at line 118 of file draw_cache_impl_hair.c.
References Hair::batch_cache, hair_batch_cache_clear(), and MEM_SAFE_FREE.
Referenced by DRW_engines_register().
| void DRW_hair_batch_cache_validate | ( | struct Hair * | hair | ) |
Definition at line 79 of file draw_cache_impl_hair.c.
References hair_batch_cache_clear(), hair_batch_cache_init(), and hair_batch_cache_valid().
Referenced by drw_batch_cache_validate(), and hair_batch_cache_get().
| int DRW_hair_material_count_get | ( | struct Hair * | hair | ) |
Definition at line 348 of file draw_cache_impl_hair.c.
References max_ii(), and Hair::totcol.
Referenced by DRW_cache_object_material_count_get().
| void DRW_lattice_batch_cache_dirty_tag | ( | struct Lattice * | lt, |
| int | mode | ||
| ) |
Definition at line 297 of file draw_cache_impl_lattice.c.
References Lattice::batch_cache, BKE_LATTICE_BATCH_DIRTY_ALL, BKE_LATTICE_BATCH_DIRTY_SELECT, BLI_assert, GPU_BATCH_DISCARD_SAFE, LatticeBatchCache::is_dirty, NULL, and LatticeBatchCache::overlay_verts.
Referenced by DRW_engines_register().
| void DRW_lattice_batch_cache_free | ( | struct Lattice * | lt | ) |
Definition at line 331 of file draw_cache_impl_lattice.c.
References Lattice::batch_cache, lattice_batch_cache_clear(), and MEM_SAFE_FREE.
Referenced by DRW_engines_register().
| struct GPUBatch* DRW_lattice_batch_cache_get_all_edges | ( | struct Lattice * | lt, |
| bool | use_weight, | ||
| const int | actdef | ||
| ) |
Definition at line 478 of file draw_cache_impl_lattice.c.
References LatticeBatchCache::all_edges, GPU_batch_create, GPU_PRIM_LINES, lattice_batch_cache_get(), lattice_batch_cache_get_edges(), lattice_batch_cache_get_pos(), lattice_render_data_create(), lattice_render_data_free(), LR_DATATYPE_EDGE, LR_DATATYPE_VERT, and NULL.
Referenced by DRW_cache_lattice_wire_get().
Definition at line 497 of file draw_cache_impl_lattice.c.
References LatticeBatchCache::all_verts, GPU_batch_create, GPU_PRIM_POINTS, lattice_batch_cache_get(), lattice_batch_cache_get_pos(), lattice_render_data_create(), lattice_render_data_free(), LR_DATATYPE_VERT, and NULL.
Referenced by DRW_cache_lattice_verts_get().
Definition at line 513 of file draw_cache_impl_lattice.c.
References lattice_batch_cache_create_overlay_batches(), lattice_batch_cache_get(), NULL, and LatticeBatchCache::overlay_verts.
Referenced by DRW_cache_lattice_vert_overlay_get().
| void DRW_lattice_batch_cache_validate | ( | struct Lattice * | lt | ) |
Definition at line 284 of file draw_cache_impl_lattice.c.
References lattice_batch_cache_clear(), lattice_batch_cache_init(), and lattice_batch_cache_valid().
Referenced by drw_batch_cache_validate().
| void DRW_mball_batch_cache_dirty_tag | ( | struct MetaBall * | mb, |
| int | mode | ||
| ) |
Definition at line 116 of file draw_cache_impl_metaball.c.
References MetaBall::batch_cache, BKE_MBALL_BATCH_DIRTY_ALL, BLI_assert, MetaBallBatchCache::is_dirty, and NULL.
Referenced by DRW_engines_register().
| void DRW_mball_batch_cache_free | ( | struct MetaBall * | mb | ) |
Definition at line 149 of file draw_cache_impl_metaball.c.
References MetaBall::batch_cache, MEM_SAFE_FREE, and metaball_batch_cache_clear().
Referenced by DRW_engines_register().
| struct GPUVertBuf* DRW_mball_batch_cache_pos_vertbuf_get | ( | struct Object * | ob | ) |
Definition at line 288 of file draw_cache_impl_metaball.c.
References BKE_mball_is_basis(), Object::data, DRW_context_state_get(), mball_batch_cache_get_pos_and_normals(), metaball_batch_cache_get(), NULL, scene, and DRWContextState::scene.
Referenced by DRW_cache_object_pos_vertbuf_get().
| void DRW_mball_batch_cache_validate | ( | struct MetaBall * | mb | ) |
Definition at line 103 of file draw_cache_impl_metaball.c.
References metaball_batch_cache_clear(), metaball_batch_cache_init(), and metaball_batch_cache_valid().
Referenced by drw_batch_cache_validate().
| void DRW_mesh_batch_cache_create_requested | ( | struct TaskGraph * | task_graph, |
| struct Object * | ob, | ||
| struct Mesh * | me, | ||
| const struct Scene * | scene, | ||
| const bool | is_paint_mode, | ||
| const bool | use_hide | ||
| ) |
Referenced by drw_batch_cache_generate_requested(), and DRW_draw_depth_object().
| void DRW_mesh_batch_cache_dirty_tag | ( | struct Mesh * | me, |
| eMeshBatchDirtyMode | mode | ||
| ) |
Definition at line 631 of file draw_cache_impl_mesh.c.
References MeshBatchCache::all_edges, MeshBatchCache::all_verts, MeshBatchCache::batch, Mesh_Runtime::batch_cache, MeshBatchCache::batch_ready, BKE_MESH_BATCH_DIRTY_ALL, BKE_MESH_BATCH_DIRTY_SELECT, BKE_MESH_BATCH_DIRTY_SELECT_PAINT, BKE_MESH_BATCH_DIRTY_SHADING, BKE_MESH_BATCH_DIRTY_UVEDIT_ALL, BKE_MESH_BATCH_DIRTY_UVEDIT_SELECT, BLI_assert, MeshBatchCache::edge_detection, MeshBatchCache::edit_edges, MeshBatchCache::edit_fdots, MeshBatchCache::edit_lnor, MeshBatchCache::edit_mesh_analysis, MeshBatchCache::edit_selection_edges, MeshBatchCache::edit_selection_faces, MeshBatchCache::edit_selection_fdots, MeshBatchCache::edit_selection_verts, MeshBatchCache::edit_triangles, MeshBatchCache::edit_vertices, MeshBatchCache::edituv_edges, MeshBatchCache::edituv_faces, MeshBatchCache::edituv_faces_stretch_angle, MeshBatchCache::edituv_faces_stretch_area, MeshBatchCache::edituv_fdots, MeshBatchCache::edituv_verts, FOREACH_MESH_BUFFER_CACHE, GPU_BATCH_DISCARD_SAFE, GPU_INDEXBUF_DISCARD_SAFE, GPU_VERTBUF_DISCARD_SAFE, MeshBatchCache::is_dirty, MeshBatchCache::loose_edges, MBC_EDIT_EDGES, MBC_EDIT_FACEDOTS, MBC_EDIT_MESH_ANALYSIS, MBC_EDIT_SELECTION_EDGES, MBC_EDIT_SELECTION_FACEDOTS, MBC_EDIT_SELECTION_FACES, MBC_EDIT_SELECTION_VERTS, MBC_EDIT_TRIANGLES, MBC_EDIT_VERTICES, MBC_EDITUV, MBC_SURFACE, MBC_WIRE_EDGES, MBC_WIRE_LOOPS, mesh_batch_cache_discard_shaded_tri(), mesh_batch_cache_discard_surface_batches(), mesh_batch_cache_discard_uvedit(), mesh_batch_cache_discard_uvedit_select(), NULL, Mesh::runtime, MeshBatchCache::surface, MeshBatchCache::surface_weights, MeshBatchCache::wire_edges, and MeshBatchCache::wire_loops.
Referenced by DRW_engines_register().
| void DRW_mesh_batch_cache_free | ( | struct Mesh * | me | ) |
Definition at line 746 of file draw_cache_impl_mesh.c.
References Mesh_Runtime::batch_cache, MEM_SAFE_FREE, mesh_batch_cache_clear(), and Mesh::runtime.
Referenced by DRW_engines_register().
| void DRW_mesh_batch_cache_free_old | ( | struct Mesh * | me, |
| int | ctime | ||
| ) |
Definition at line 1134 of file draw_cache_impl_mesh.c.
References Mesh_Runtime::batch_cache, MeshBatchCache::cd_used, MeshBatchCache::cd_used_over_time, MeshBatchCache::lastmatch, mesh_batch_cache_discard_shaded_tri(), mesh_cd_layers_type_clear(), mesh_cd_layers_type_equal(), NULL, and Mesh::runtime.
Referenced by DRW_batch_cache_free_old().
Definition at line 802 of file draw_cache_impl_mesh.c.
References MeshBatchCache::all_edges, MeshBatchCache::batch, DRW_batch_request(), MBC_ALL_EDGES, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by DRW_cache_mesh_all_edges_get().
Definition at line 795 of file draw_cache_impl_mesh.c.
References MeshBatchCache::all_verts, MeshBatchCache::batch, DRW_batch_request(), MBC_ALL_VERTS, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by DRW_cache_mesh_all_verts_get().
Definition at line 834 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edge_detection, MeshBatchCache::is_manifold, MBC_EDGE_DETECTION, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by DRW_cache_curve_edge_detection_get(), DRW_cache_mesh_edge_detection_get(), DRW_cache_surf_edge_detection_get(), and DRW_cache_text_edge_detection_get().
Definition at line 1013 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_selection_edges, MBC_EDIT_SELECTION_EDGES, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by draw_select_id_edit_mesh(), draw_select_id_mesh(), and select_cache_populate().
Definition at line 951 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_edges, MBC_EDIT_EDGES, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by overlay_edit_mesh_add_ob_to_pass().
Definition at line 979 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_fdots, MBC_EDIT_FACEDOTS, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by overlay_edit_mesh_add_ob_to_pass(), and OVERLAY_edit_mesh_cache_populate().
Definition at line 972 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_lnor, MBC_EDIT_LNOR, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by OVERLAY_edit_mesh_cache_populate().
Definition at line 853 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_mesh_analysis, MBC_EDIT_MESH_ANALYSIS, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by DRW_cache_mesh_surface_mesh_analysis_get().
Definition at line 986 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_skin_roots, MBC_SKIN_ROOTS, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by overlay_edit_mesh_add_ob_to_pass().
Definition at line 944 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_triangles, MBC_EDIT_TRIANGLES, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by DRW_draw_depth_object(), and overlay_edit_mesh_add_ob_to_pass().
Definition at line 958 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_vertices, MBC_EDIT_VERTICES, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by overlay_edit_mesh_add_ob_to_pass().
Definition at line 965 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_vnor, MBC_EDIT_VNOR, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by OVERLAY_edit_mesh_cache_populate().
Definition at line 1085 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edituv_edges, edituv_request_active_uv(), MBC_EDITUV_EDGES, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by overlay_edit_uv_cache_populate().
Definition at line 1101 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edituv_fdots, edituv_request_active_uv(), MBC_EDITUV_FACEDOTS, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by overlay_edit_uv_cache_populate().
Definition at line 1077 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edituv_faces, edituv_request_active_uv(), MBC_EDITUV_FACES, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by overlay_edit_uv_cache_populate().
Definition at line 1069 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edituv_faces_stretch_angle, edituv_request_active_uv(), MBC_EDITUV_FACES_STRETCH_ANGLE, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by overlay_edit_uv_cache_populate().
| struct GPUBatch* DRW_mesh_batch_cache_get_edituv_faces_stretch_area | ( | struct Mesh * | me, |
| float ** | tot_area, | ||
| float ** | tot_uv_area | ||
| ) |
Definition at line 1052 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edituv_faces_stretch_area, edituv_request_active_uv(), MBC_EDITUV_FACES_STRETCH_AREA, mesh_batch_cache_add_request(), mesh_batch_cache_get(), NULL, MeshBatchCache::tot_area, and MeshBatchCache::tot_uv_area.
Referenced by overlay_edit_uv_cache_populate().
Definition at line 1093 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), edituv_request_active_uv(), MeshBatchCache::edituv_verts, MBC_EDITUV_VERTS, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by overlay_edit_uv_cache_populate().
Definition at line 1006 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_selection_fdots, MBC_EDIT_SELECTION_FACEDOTS, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by draw_select_id_edit_mesh().
Definition at line 816 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::loose_edges, MBC_LOOSE_EDGES, mesh_batch_cache_add_request(), mesh_batch_cache_get(), MeshBatchCache::no_loose_wire, and NULL.
Referenced by DRW_cache_curve_edge_wire_get(), DRW_cache_curve_loose_edges_get(), DRW_cache_mesh_loose_edges_get(), DRW_cache_surf_edge_wire_get(), DRW_cache_surf_loose_edges_get(), DRW_cache_text_edge_wire_get(), and DRW_cache_text_loose_edges_get().
Definition at line 911 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, MeshBatchCache::cd_needed, DRW_batch_request(), MBC_SCULPT_OVERLAYS, mesh_batch_cache_add_request(), mesh_batch_cache_get(), DRW_MeshCDMask::sculpt_overlays, and MeshBatchCache::sculpt_overlays.
Referenced by OVERLAY_sculpt_cache_populate().
Definition at line 809 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, mesh_batch_cache_get(), mesh_batch_cache_request_surface_batches(), and MeshBatchCache::surface.
Referenced by draw_select_id_edit_mesh(), DRW_cache_curve_surface_get(), DRW_cache_mesh_surface_get(), DRW_cache_surf_surface_get(), DRW_cache_text_surface_get(), DRW_draw_depth_object(), and select_cache_populate().
Definition at line 1117 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MBC_WIRE_LOOPS, mesh_batch_cache_add_request(), mesh_batch_cache_get(), texpaint_request_active_uv(), and MeshBatchCache::wire_loops.
Referenced by DRW_cache_mesh_surface_edges_get().
Definition at line 898 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, mesh_batch_cache_get(), mesh_batch_cache_request_surface_batches(), sculpt_request_active_vcol(), and MeshBatchCache::surface.
Referenced by DRW_cache_mesh_surface_sculptcolors_get().
| struct GPUBatch** DRW_mesh_batch_cache_get_surface_shaded | ( | struct Mesh * | me, |
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
Definition at line 860 of file draw_cache_impl_mesh.c.
References BLI_assert, MeshBatchCache::cd_needed, MeshBatchCache::mat_len, mesh_batch_cache_get(), mesh_batch_cache_request_surface_batches(), mesh_cd_calc_used_gpu_layers(), mesh_cd_layers_type_merge(), and MeshBatchCache::surface_per_mat.
Referenced by DRW_cache_curve_surface_shaded_get(), DRW_cache_mesh_surface_shaded_get(), DRW_cache_surf_surface_shaded_get(), and DRW_cache_text_surface_shaded_get().
Definition at line 874 of file draw_cache_impl_mesh.c.
References mesh_batch_cache_get(), mesh_batch_cache_request_surface_batches(), MeshBatchCache::surface_per_mat, and texpaint_request_active_uv().
Referenced by DRW_cache_mesh_surface_texpaint_get().
Definition at line 882 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, mesh_batch_cache_get(), mesh_batch_cache_request_surface_batches(), MeshBatchCache::surface, and texpaint_request_active_uv().
Referenced by DRW_cache_mesh_surface_texpaint_single_get().
Definition at line 890 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, mesh_batch_cache_get(), mesh_batch_cache_request_surface_batches(), MeshBatchCache::surface, and texpaint_request_active_vcol().
Referenced by DRW_cache_mesh_surface_vertpaint_get().
Definition at line 827 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MBC_SURFACE_WEIGHTS, mesh_batch_cache_add_request(), mesh_batch_cache_get(), and MeshBatchCache::surface_weights.
Referenced by DRW_cache_mesh_surface_weights_get().
Definition at line 999 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_selection_faces, MBC_EDIT_SELECTION_FACES, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by draw_select_id_edit_mesh(), draw_select_id_mesh(), and select_cache_populate().
Definition at line 1109 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), edituv_request_active_uv(), MBC_WIRE_LOOPS_UVS, mesh_batch_cache_add_request(), mesh_batch_cache_get(), and MeshBatchCache::wire_loops_uvs.
Referenced by overlay_edit_uv_cache_populate().
Definition at line 1020 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MeshBatchCache::edit_selection_verts, MBC_EDIT_SELECTION_VERTS, mesh_batch_cache_add_request(), and mesh_batch_cache_get().
Referenced by draw_select_id_edit_mesh(), draw_select_id_mesh(), and select_cache_populate().
Definition at line 846 of file draw_cache_impl_mesh.c.
References MeshBatchCache::batch, DRW_batch_request(), MBC_WIRE_EDGES, mesh_batch_cache_add_request(), mesh_batch_cache_get(), and MeshBatchCache::wire_edges.
Referenced by DRW_cache_curve_face_wireframe_get(), DRW_cache_mesh_face_wireframe_get(), DRW_cache_surf_face_wireframe_get(), and DRW_cache_text_face_wireframe_get().
| struct GPUVertBuf* DRW_mesh_batch_cache_pos_vertbuf_get | ( | struct Mesh * | me | ) |
Definition at line 928 of file draw_cache_impl_mesh.c.
References DRW_vbo_request(), MeshBatchCache::final, mesh_batch_cache_get(), mesh_batch_cache_request_surface_batches(), NULL, MeshBufferCache::pos_nor, and MeshBufferCache::vbo.
Referenced by DRW_cache_object_pos_vertbuf_get().
| void DRW_mesh_batch_cache_validate | ( | struct Mesh * | me | ) |
Definition at line 511 of file draw_cache_impl_mesh.c.
References mesh_batch_cache_clear(), mesh_batch_cache_init(), and mesh_batch_cache_valid().
Referenced by drw_batch_cache_validate(), and OVERLAY_edit_uv_cache_init().
| int DRW_mesh_material_count_get | ( | struct Mesh * | me | ) |
Definition at line 906 of file draw_cache_impl_mesh.c.
References mesh_render_mat_len_get().
Referenced by DRW_cache_object_material_count_get().
| struct GPUBatch* DRW_metaball_batch_cache_get_edge_detection | ( | struct Object * | ob, |
| bool * | r_is_manifold | ||
| ) |
Definition at line 262 of file draw_cache_impl_metaball.c.
References BKE_mball_is_basis(), Object::data, DRW_context_state_get(), MetaBallBatchCache::edge_detection, GPU_batch_create, GPU_PRIM_LINES_ADJ, MetaBallBatchCache::is_manifold, mball_batch_cache_get_edges_adj_lines(), mball_batch_cache_get_pos_and_normals(), metaball_batch_cache_get(), NULL, scene, and DRWContextState::scene.
Referenced by DRW_cache_mball_edge_detection_get().
| struct GPUBatch** DRW_metaball_batch_cache_get_surface_shaded | ( | struct Object * | ob, |
| struct MetaBall * | mb, | ||
| struct GPUMaterial ** | gpumat_array, | ||
| uint | gpumat_array_len | ||
| ) |
Referenced by DRW_cache_mball_surface_shaded_get().
Definition at line 182 of file draw_cache_impl_metaball.c.
References MetaBallBatchCache::batch, BKE_mball_is_basis(), Object_Runtime::curve_cache, Object::data, CurveCache::disp, DRW_context_state_get(), DRW_displist_indexbuf_create_triangles_in_order(), GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_indexbuf_calloc(), GPU_PRIM_TRIS, mball_batch_cache_get_pos_and_normals(), metaball_batch_cache_get(), NULL, Object::runtime, scene, and DRWContextState::scene.
Referenced by DRW_cache_mball_surface_get(), and DRW_metaball_batch_cache_get_surface_shaded().
Definition at line 230 of file draw_cache_impl_metaball.c.
References MetaBallBatchCache::batch, BKE_mball_is_basis(), Object_Runtime::curve_cache, Object::data, CurveCache::disp, DRW_context_state_get(), DRW_displist_indexbuf_create_lines_in_order(), DRW_displist_vertbuf_create_wiredata(), MetaBallBatchCache::face_wire, GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_batch_vertbuf_add_ex(), GPU_indexbuf_calloc(), GPU_PRIM_LINES, GPU_vertbuf_calloc(), mball_batch_cache_get_pos_and_normals(), metaball_batch_cache_get(), NULL, Object::runtime, scene, and DRWContextState::scene.
Referenced by DRW_cache_mball_face_wireframe_get().
| int DRW_metaball_material_count_get | ( | struct MetaBall * | mb | ) |
Definition at line 302 of file draw_cache_impl_metaball.c.
References max_ii(), and MetaBall::totcol.
Referenced by DRW_cache_object_material_count_get(), and DRW_metaball_batch_cache_get_surface_shaded().
| void DRW_particle_batch_cache_dirty_tag | ( | struct ParticleSystem * | psys, |
| int | mode | ||
| ) |
Definition at line 161 of file draw_cache_impl_particles.c.
References ParticleSystem::batch_cache, BKE_PARTICLE_BATCH_DIRTY_ALL, BLI_assert, ParticleBatchCache::is_dirty, and NULL.
Referenced by DRW_engines_register().
| void DRW_particle_batch_cache_free | ( | struct ParticleSystem * | psys | ) |
Definition at line 233 of file draw_cache_impl_particles.c.
References ParticleSystem::batch_cache, MEM_SAFE_FREE, and particle_batch_cache_clear().
Referenced by DRW_engines_register().
| struct GPUBatch* DRW_particles_batch_cache_get_dots | ( | struct Object * | object, |
| struct ParticleSystem * | psys | ||
| ) |
Definition at line 1460 of file draw_cache_impl_particles.c.
References GPU_batch_create, GPU_PRIM_POINTS, NULL, particle_batch_cache_ensure_pos(), particle_batch_cache_get(), ParticleBatchCache::point, ParticlePointCache::points, and ParticlePointCache::pos.
Referenced by DRW_cache_particles_get_dots().
| struct GPUBatch* DRW_particles_batch_cache_get_edit_inner_points | ( | struct Object * | object, |
| struct ParticleSystem * | psys, | ||
| struct PTCacheEdit * | edit | ||
| ) |
Definition at line 1575 of file draw_cache_impl_particles.c.
References drw_particle_update_ptcache_edit(), ParticleBatchCache::edit_inner_points, ParticleBatchCache::edit_inner_pos, ensure_edit_inner_points_count(), GPU_batch_create, GPU_PRIM_POINTS, NULL, particle_batch_cache_ensure_edit_inner_pos(), and particle_batch_cache_get().
Referenced by DRW_cache_particles_get_edit_inner_points().
| struct GPUBatch* DRW_particles_batch_cache_get_edit_strands | ( | struct Object * | object, |
| struct ParticleSystem * | psys, | ||
| struct PTCacheEdit * | edit, | ||
| bool | use_weight | ||
| ) |
Definition at line 1508 of file draw_cache_impl_particles.c.
References drw_particle_update_ptcache_edit(), ParticleBatchCache::edit_hair, ParticleBatchCache::edit_is_weight, ensure_seg_pt_count(), GPU_batch_create, GPU_BATCH_DISCARD_SAFE, GPU_PRIM_LINE_STRIP, GPU_VERTBUF_DISCARD_SAFE, ParticleHairCache::hairs, ParticleHairCache::indices, NULL, particle_batch_cache_ensure_edit_pos_and_seg(), particle_batch_cache_get(), and ParticleHairCache::pos.
Referenced by DRW_cache_particles_get_edit_strands().
| struct GPUBatch* DRW_particles_batch_cache_get_edit_tip_points | ( | struct Object * | object, |
| struct ParticleSystem * | psys, | ||
| struct PTCacheEdit * | edit | ||
| ) |
Definition at line 1632 of file draw_cache_impl_particles.c.
References drw_particle_update_ptcache_edit(), ParticleBatchCache::edit_tip_points, ParticleBatchCache::edit_tip_pos, ensure_edit_tip_points_count(), GPU_batch_create, GPU_PRIM_POINTS, NULL, particle_batch_cache_ensure_edit_tip_pos(), and particle_batch_cache_get().
Referenced by DRW_cache_particles_get_edit_tip_points().
| struct GPUBatch* DRW_particles_batch_cache_get_hair | ( | struct Object * | object, |
| struct ParticleSystem * | psys, | ||
| struct ModifierData * | md | ||
| ) |
Definition at line 1443 of file draw_cache_impl_particles.c.
References drw_particle_get_hair_source(), drw_particle_update_ptcache(), ParticleDrawSource::edit, ensure_seg_pt_count(), GPU_batch_create, GPU_PRIM_LINE_STRIP, ParticleBatchCache::hair, ParticleHairCache::hairs, ParticleHairCache::indices, ParticleDrawSource::md, NULL, particle_batch_cache_ensure_pos_and_seg(), particle_batch_cache_get(), ParticleHairCache::pos, and ParticleDrawSource::psys.
Referenced by DRW_cache_particles_get_hair().
| void DRW_pointcloud_batch_cache_dirty_tag | ( | struct PointCloud * | pointcloud, |
| int | mode | ||
| ) |
Definition at line 109 of file draw_cache_impl_pointcloud.c.
References PointCloud::batch_cache, BKE_POINTCLOUD_BATCH_DIRTY_ALL, BLI_assert, PointCloudBatchCache::is_dirty, and NULL.
Referenced by DRW_engines_register().
| void DRW_pointcloud_batch_cache_free | ( | struct PointCloud * | pointcloud | ) |
Definition at line 145 of file draw_cache_impl_pointcloud.c.
References PointCloud::batch_cache, MEM_SAFE_FREE, and pointcloud_batch_cache_clear().
Referenced by DRW_engines_register().
Definition at line 239 of file draw_cache_impl_pointcloud.c.
References Object::data, PointCloudBatchCache::dots, GPU_batch_create, GPU_PRIM_POINTS, NULL, pointcloud_batch_cache_ensure_pos(), pointcloud_batch_cache_get(), and PointCloudBatchCache::pos.
Referenced by DRW_cache_object_face_wireframe_get(), and DRW_cache_pointcloud_get_dots().
Definition at line 252 of file draw_cache_impl_pointcloud.c.
References Object::data, PointCloudBatchCache::geom, PointCloudBatchCache::geom_indices, GPU_batch_create, GPU_batch_instbuf_add_ex(), GPU_PRIM_TRIS, NULL, pointcloud_batch_cache_ensure_geom(), pointcloud_batch_cache_ensure_pos(), pointcloud_batch_cache_get(), PointCloudBatchCache::pos, and PointCloudBatchCache::surface.
Referenced by DRW_cache_pointcloud_surface_get().
| void DRW_pointcloud_batch_cache_validate | ( | struct PointCloud * | pointcloud | ) |
Definition at line 96 of file draw_cache_impl_pointcloud.c.
References pointcloud_batch_cache_clear(), pointcloud_batch_cache_init(), and pointcloud_batch_cache_valid().
Referenced by drw_batch_cache_validate().
| int DRW_pointcloud_material_count_get | ( | struct PointCloud * | pointcloud | ) |
Definition at line 288 of file draw_cache_impl_pointcloud.c.
References max_ii(), and PointCloud::totcol.
Referenced by DRW_cache_object_material_count_get(), pointcloud_batch_cache_init(), and pointcloud_batch_cache_valid().
| void DRW_vertbuf_create_wiredata | ( | struct GPUVertBuf * | vbo, |
| const int | vert_len | ||
| ) |
Definition at line 232 of file draw_cache_impl_displist.c.
References attr_id, GPU_COMP_F32, GPU_COMP_U8, GPU_crappy_amd_driver(), GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_vertbuf_attr_get_raw_data(), GPU_vertbuf_data_alloc(), GPU_vertbuf_get_data(), GPU_vertbuf_get_format(), GPU_vertbuf_init_with_format, GPU_vertbuf_raw_step(), GPU_vertformat_attr_add(), and stride.
Referenced by DRW_displist_vertbuf_create_wiredata(), and drw_volume_wireframe_cb().
| void DRW_volume_batch_cache_dirty_tag | ( | struct Volume * | volume, |
| int | mode | ||
| ) |
Definition at line 111 of file draw_cache_impl_volume.c.
References Volume::batch_cache, BKE_VOLUME_BATCH_DIRTY_ALL, BLI_assert, VolumeBatchCache::is_dirty, and NULL.
Referenced by DRW_engines_register().
| void DRW_volume_batch_cache_free | ( | struct Volume * | volume | ) |
Definition at line 144 of file draw_cache_impl_volume.c.
References Volume::batch_cache, MEM_SAFE_FREE, and volume_batch_cache_clear().
Referenced by DRW_engines_register().
Definition at line 273 of file draw_cache_impl_volume.c.
References BKE_volume_grid_active_get_for_read(), BKE_volume_grid_selection_surface(), drw_volume_selection_surface_cb(), NULL, VolumeBatchCache::selection_surface, and volume_batch_cache_get().
Referenced by DRW_cache_volume_selection_surface_get().
Definition at line 219 of file draw_cache_impl_volume.c.
References VolumeBatchCache::batch, BKE_volume_grid_active_get_for_read(), BKE_volume_grid_wireframe(), Volume::display, DRW_context_state_get(), drw_volume_wireframe_cb(), VolumeBatchCache::face_wire, NULL, VolumeWireframeUserData::scene, DRWContextState::scene, VolumeWireframeUserData::volume, volume_batch_cache_get(), VOLUME_WIREFRAME_NONE, and VolumeDisplay::wireframe_type.
Referenced by DRW_cache_volume_face_wireframe_get().
| void DRW_volume_batch_cache_validate | ( | struct Volume * | volume | ) |
Definition at line 97 of file draw_cache_impl_volume.c.
References volume_batch_cache_clear(), volume_batch_cache_init(), and volume_batch_cache_valid().
Referenced by drw_batch_cache_validate(), and volume_batch_cache_get().
| int DRW_volume_material_count_get | ( | struct Volume * | volume | ) |
Definition at line 361 of file draw_cache_impl_volume.c.
References max_ii(), and Volume::totcol.
Referenced by DRW_cache_object_material_count_get().