Blender  V2.93
Enumerations | Functions
draw_cache_impl.h File Reference
#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
}
 

Functions

void DRW_mball_batch_cache_dirty_tag (struct MetaBall *mb, int mode)
 
void DRW_mball_batch_cache_validate (struct MetaBall *mb)
 
void DRW_mball_batch_cache_free (struct MetaBall *mb)
 
void DRW_curve_batch_cache_dirty_tag (struct Curve *cu, int mode)
 
void DRW_curve_batch_cache_validate (struct Curve *cu)
 
void DRW_curve_batch_cache_free (struct Curve *cu)
 
void DRW_mesh_batch_cache_dirty_tag (struct Mesh *me, eMeshBatchDirtyMode mode)
 
void DRW_mesh_batch_cache_validate (struct Mesh *me)
 
void DRW_mesh_batch_cache_free (struct Mesh *me)
 
void DRW_lattice_batch_cache_dirty_tag (struct Lattice *lt, int mode)
 
void DRW_lattice_batch_cache_validate (struct Lattice *lt)
 
void DRW_lattice_batch_cache_free (struct Lattice *lt)
 
void DRW_particle_batch_cache_dirty_tag (struct ParticleSystem *psys, int mode)
 
void DRW_particle_batch_cache_free (struct ParticleSystem *psys)
 
void DRW_gpencil_batch_cache_dirty_tag (struct bGPdata *gpd)
 
void DRW_gpencil_batch_cache_free (struct bGPdata *gpd)
 
void DRW_hair_batch_cache_dirty_tag (struct Hair *hair, int mode)
 
void DRW_hair_batch_cache_validate (struct Hair *hair)
 
void DRW_hair_batch_cache_free (struct Hair *hair)
 
void DRW_pointcloud_batch_cache_dirty_tag (struct PointCloud *pointcloud, int mode)
 
void DRW_pointcloud_batch_cache_validate (struct PointCloud *pointcloud)
 
void DRW_pointcloud_batch_cache_free (struct PointCloud *pointcloud)
 
void DRW_volume_batch_cache_dirty_tag (struct Volume *volume, int mode)
 
void DRW_volume_batch_cache_validate (struct Volume *volume)
 
void DRW_volume_batch_cache_free (struct Volume *volume)
 
void DRW_batch_cache_free_old (struct Object *ob, int ctime)
 
void DRW_mesh_batch_cache_free_old (struct Mesh *me, int ctime)
 
void DRW_vertbuf_create_wiredata (struct GPUVertBuf *vbo, const int vert_len)
 
void DRW_curve_batch_cache_create_requested (struct Object *ob, const struct Scene *scene)
 
int DRW_curve_material_count_get (struct Curve *cu)
 
struct GPUBatchDRW_curve_batch_cache_get_wire_edge (struct Curve *cu)
 
struct GPUBatchDRW_curve_batch_cache_get_normal_edge (struct Curve *cu)
 
struct GPUBatchDRW_curve_batch_cache_get_edge_detection (struct Curve *cu, bool *r_is_manifold)
 
struct GPUBatchDRW_curve_batch_cache_get_edit_edges (struct Curve *cu)
 
struct GPUBatchDRW_curve_batch_cache_get_edit_verts (struct Curve *cu)
 
struct GPUBatchDRW_curve_batch_cache_get_triangles_with_normals (struct Curve *cu)
 
struct GPUBatch ** DRW_curve_batch_cache_get_surface_shaded (struct Curve *cu, struct GPUMaterial **gpumat_array, uint gpumat_array_len)
 
struct GPUBatchDRW_curve_batch_cache_get_wireframes_face (struct Curve *cu)
 
int DRW_metaball_material_count_get (struct MetaBall *mb)
 
struct GPUBatchDRW_metaball_batch_cache_get_triangles_with_normals (struct Object *ob)
 
struct GPUBatch ** DRW_metaball_batch_cache_get_surface_shaded (struct Object *ob, struct MetaBall *mb, struct GPUMaterial **gpumat_array, uint gpumat_array_len)
 
struct GPUBatchDRW_metaball_batch_cache_get_wireframes_face (struct Object *ob)
 
struct GPUBatchDRW_metaball_batch_cache_get_edge_detection (struct Object *ob, bool *r_is_manifold)
 
void DRW_displist_vertbuf_create_pos_and_nor (struct ListBase *lb, struct GPUVertBuf *vbo, const struct Scene *scene)
 
void DRW_displist_vertbuf_create_wiredata (struct ListBase *lb, struct GPUVertBuf *vbo)
 
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)
 
void DRW_displist_indexbuf_create_lines_in_order (struct ListBase *lb, struct GPUIndexBuf *ibo)
 
void DRW_displist_indexbuf_create_triangles_in_order (struct ListBase *lb, struct GPUIndexBuf *ibo)
 
void DRW_displist_indexbuf_create_triangles_loop_split_by_material (struct ListBase *lb, struct GPUIndexBuf **ibo_mat, uint mat_len)
 
void DRW_displist_indexbuf_create_edges_adjacency_lines (struct ListBase *lb, struct GPUIndexBuf *ibo, bool *r_is_manifold)
 
struct GPUBatchDRW_lattice_batch_cache_get_all_edges (struct Lattice *lt, bool use_weight, const int actdef)
 
struct GPUBatchDRW_lattice_batch_cache_get_all_verts (struct Lattice *lt)
 
struct GPUBatchDRW_lattice_batch_cache_get_edit_verts (struct Lattice *lt)
 
int DRW_hair_material_count_get (struct Hair *hair)
 
int DRW_pointcloud_material_count_get (struct PointCloud *pointcloud)
 
struct GPUBatchDRW_pointcloud_batch_cache_get_dots (struct Object *ob)
 
struct GPUBatchDRW_pointcloud_batch_cache_get_surface (struct Object *ob)
 
struct GPUBatch ** DRW_cache_pointcloud_surface_shaded_get (struct Object *ob, struct GPUMaterial **gpumat_array, uint gpumat_array_len)
 
int DRW_volume_material_count_get (struct Volume *volume)
 
struct GPUBatchDRW_volume_batch_cache_get_wireframes_face (struct Volume *volume)
 
struct GPUBatchDRW_volume_batch_cache_get_selection_surface (struct Volume *volume)
 
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)
 
struct GPUBatchDRW_mesh_batch_cache_get_all_verts (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_all_edges (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_loose_edges (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edge_detection (struct Mesh *me, bool *r_is_manifold)
 
struct GPUBatchDRW_mesh_batch_cache_get_surface (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_surface_edges (struct Mesh *me)
 
struct GPUBatch ** DRW_mesh_batch_cache_get_surface_shaded (struct Mesh *me, struct GPUMaterial **gpumat_array, uint gpumat_array_len)
 
struct GPUBatch ** DRW_mesh_batch_cache_get_surface_texpaint (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_surface_texpaint_single (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_surface_vertpaint (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_surface_sculpt (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_surface_weights (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_sculpt_overlays (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edit_triangles (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edit_vertices (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edit_edges (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edit_vnors (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edit_lnors (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edit_facedots (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edit_skin_roots (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_triangles_with_select_id (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_facedots_with_select_id (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edges_with_select_id (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_verts_with_select_id (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_wireframes_face (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edituv_faces_stretch_area (struct Mesh *me, float **tot_area, float **tot_uv_area)
 
struct GPUBatchDRW_mesh_batch_cache_get_edituv_faces_stretch_angle (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edituv_faces (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edituv_edges (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edituv_verts (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edituv_facedots (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_uv_edges (struct Mesh *me)
 
struct GPUBatchDRW_mesh_batch_cache_get_edit_mesh_analysis (struct Mesh *me)
 
struct GPUVertBufDRW_mesh_batch_cache_pos_vertbuf_get (struct Mesh *me)
 
struct GPUVertBufDRW_curve_batch_cache_pos_vertbuf_get (struct Curve *cu)
 
struct GPUVertBufDRW_mball_batch_cache_pos_vertbuf_get (struct Object *ob)
 
int DRW_mesh_material_count_get (struct Mesh *me)
 
struct GPUBatchDRW_particles_batch_cache_get_hair (struct Object *object, struct ParticleSystem *psys, struct ModifierData *md)
 
struct GPUBatchDRW_particles_batch_cache_get_dots (struct Object *object, struct ParticleSystem *psys)
 
struct GPUBatchDRW_particles_batch_cache_get_edit_strands (struct Object *object, struct ParticleSystem *psys, struct PTCacheEdit *edit, bool use_weight)
 
struct GPUBatchDRW_particles_batch_cache_get_edit_inner_points (struct Object *object, struct ParticleSystem *psys, struct PTCacheEdit *edit)
 
struct GPUBatchDRW_particles_batch_cache_get_edit_tip_points (struct Object *object, struct ParticleSystem *psys, struct PTCacheEdit *edit)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VFLAG_VERT_ACTIVE 
VFLAG_VERT_SELECTED 
VFLAG_VERT_SELECTED_BEZT_HANDLE 
VFLAG_EDGE_ACTIVE 
VFLAG_EDGE_SELECTED 
VFLAG_EDGE_SEAM 
VFLAG_EDGE_SHARP 
VFLAG_EDGE_FREESTYLE 
VFLAG_VERT_GPENCIL_BEZT_HANDLE 

Definition at line 223 of file draw_cache_impl.h.

◆ anonymous enum

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.

Function Documentation

◆ DRW_batch_cache_free_old()

void DRW_batch_cache_free_old ( struct Object ob,
int  ctime 
)

◆ DRW_cache_pointcloud_surface_shaded_get()

struct GPUBatch** DRW_cache_pointcloud_surface_shaded_get ( struct Object ob,
struct GPUMaterial **  gpumat_array,
uint  gpumat_array_len 
)

◆ DRW_curve_batch_cache_create_requested()

void DRW_curve_batch_cache_create_requested ( struct Object ob,
const struct Scene scene 
)

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().

◆ DRW_curve_batch_cache_dirty_tag()

void DRW_curve_batch_cache_dirty_tag ( struct Curve cu,
int  mode 
)

◆ DRW_curve_batch_cache_free()

void DRW_curve_batch_cache_free ( struct Curve cu)

◆ DRW_curve_batch_cache_get_edge_detection()

struct GPUBatch* DRW_curve_batch_cache_get_edge_detection ( struct Curve cu,
bool *  r_is_manifold 
)

◆ DRW_curve_batch_cache_get_edit_edges()

struct GPUBatch* DRW_curve_batch_cache_get_edit_edges ( struct Curve cu)

◆ DRW_curve_batch_cache_get_edit_verts()

struct GPUBatch* DRW_curve_batch_cache_get_edit_verts ( struct Curve cu)

◆ DRW_curve_batch_cache_get_normal_edge()

struct GPUBatch* DRW_curve_batch_cache_get_normal_edge ( struct Curve cu)

◆ DRW_curve_batch_cache_get_surface_shaded()

struct GPUBatch** DRW_curve_batch_cache_get_surface_shaded ( struct Curve cu,
struct GPUMaterial **  gpumat_array,
uint  gpumat_array_len 
)

◆ DRW_curve_batch_cache_get_triangles_with_normals()

struct GPUBatch* DRW_curve_batch_cache_get_triangles_with_normals ( struct Curve cu)

◆ DRW_curve_batch_cache_get_wire_edge()

struct GPUBatch* DRW_curve_batch_cache_get_wire_edge ( struct Curve cu)

◆ DRW_curve_batch_cache_get_wireframes_face()

struct GPUBatch* DRW_curve_batch_cache_get_wireframes_face ( struct Curve cu)

◆ DRW_curve_batch_cache_pos_vertbuf_get()

struct GPUVertBuf* DRW_curve_batch_cache_pos_vertbuf_get ( struct Curve cu)

◆ DRW_curve_batch_cache_validate()

void DRW_curve_batch_cache_validate ( struct Curve cu)

◆ DRW_curve_material_count_get()

int DRW_curve_material_count_get ( struct Curve cu)

◆ DRW_displist_indexbuf_create_edges_adjacency_lines()

void DRW_displist_indexbuf_create_edges_adjacency_lines ( struct ListBase lb,
struct GPUIndexBuf ibo,
bool *  r_is_manifold 
)

◆ DRW_displist_indexbuf_create_lines_in_order()

void DRW_displist_indexbuf_create_lines_in_order ( struct ListBase lb,
struct GPUIndexBuf ibo 
)

◆ DRW_displist_indexbuf_create_triangles_in_order()

void DRW_displist_indexbuf_create_triangles_in_order ( struct ListBase lb,
struct GPUIndexBuf ibo 
)

◆ DRW_displist_indexbuf_create_triangles_loop_split_by_material()

void DRW_displist_indexbuf_create_triangles_loop_split_by_material ( struct ListBase lb,
struct GPUIndexBuf **  ibo_mat,
uint  mat_len 
)

◆ DRW_displist_vertbuf_create_loop_pos_and_nor_and_uv_and_tan()

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 
)

◆ DRW_displist_vertbuf_create_pos_and_nor()

void DRW_displist_vertbuf_create_pos_and_nor ( struct ListBase lb,
struct GPUVertBuf vbo,
const struct Scene scene 
)

◆ DRW_displist_vertbuf_create_wiredata()

void DRW_displist_vertbuf_create_wiredata ( struct ListBase lb,
struct GPUVertBuf vbo 
)

◆ DRW_gpencil_batch_cache_dirty_tag()

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().

◆ DRW_gpencil_batch_cache_free()

void DRW_gpencil_batch_cache_free ( struct bGPdata gpd)

◆ DRW_hair_batch_cache_dirty_tag()

void DRW_hair_batch_cache_dirty_tag ( struct Hair hair,
int  mode 
)

◆ DRW_hair_batch_cache_free()

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().

◆ DRW_hair_batch_cache_validate()

void DRW_hair_batch_cache_validate ( struct Hair hair)

◆ DRW_hair_material_count_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().

◆ DRW_lattice_batch_cache_dirty_tag()

void DRW_lattice_batch_cache_dirty_tag ( struct Lattice lt,
int  mode 
)

◆ DRW_lattice_batch_cache_free()

void DRW_lattice_batch_cache_free ( struct Lattice lt)

◆ DRW_lattice_batch_cache_get_all_edges()

struct GPUBatch* DRW_lattice_batch_cache_get_all_edges ( struct Lattice lt,
bool  use_weight,
const int  actdef 
)

◆ DRW_lattice_batch_cache_get_all_verts()

struct GPUBatch* DRW_lattice_batch_cache_get_all_verts ( struct Lattice lt)

◆ DRW_lattice_batch_cache_get_edit_verts()

struct GPUBatch* DRW_lattice_batch_cache_get_edit_verts ( struct Lattice lt)

◆ DRW_lattice_batch_cache_validate()

void DRW_lattice_batch_cache_validate ( struct Lattice lt)

◆ DRW_mball_batch_cache_dirty_tag()

void DRW_mball_batch_cache_dirty_tag ( struct MetaBall mb,
int  mode 
)

◆ DRW_mball_batch_cache_free()

void DRW_mball_batch_cache_free ( struct MetaBall mb)

◆ DRW_mball_batch_cache_pos_vertbuf_get()

struct GPUVertBuf* DRW_mball_batch_cache_pos_vertbuf_get ( struct Object ob)

◆ DRW_mball_batch_cache_validate()

void DRW_mball_batch_cache_validate ( struct MetaBall mb)

◆ DRW_mesh_batch_cache_create_requested()

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 
)

◆ DRW_mesh_batch_cache_dirty_tag()

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().

◆ DRW_mesh_batch_cache_free()

void DRW_mesh_batch_cache_free ( struct Mesh me)

◆ DRW_mesh_batch_cache_free_old()

void DRW_mesh_batch_cache_free_old ( struct Mesh me,
int  ctime 
)

◆ DRW_mesh_batch_cache_get_all_edges()

struct GPUBatch* DRW_mesh_batch_cache_get_all_edges ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_all_verts()

struct GPUBatch* DRW_mesh_batch_cache_get_all_verts ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edge_detection()

struct GPUBatch* DRW_mesh_batch_cache_get_edge_detection ( struct Mesh me,
bool *  r_is_manifold 
)

◆ DRW_mesh_batch_cache_get_edges_with_select_id()

struct GPUBatch* DRW_mesh_batch_cache_get_edges_with_select_id ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edit_edges()

struct GPUBatch* DRW_mesh_batch_cache_get_edit_edges ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edit_facedots()

struct GPUBatch* DRW_mesh_batch_cache_get_edit_facedots ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edit_lnors()

struct GPUBatch* DRW_mesh_batch_cache_get_edit_lnors ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edit_mesh_analysis()

struct GPUBatch* DRW_mesh_batch_cache_get_edit_mesh_analysis ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edit_skin_roots()

struct GPUBatch* DRW_mesh_batch_cache_get_edit_skin_roots ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edit_triangles()

struct GPUBatch* DRW_mesh_batch_cache_get_edit_triangles ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edit_vertices()

struct GPUBatch* DRW_mesh_batch_cache_get_edit_vertices ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edit_vnors()

struct GPUBatch* DRW_mesh_batch_cache_get_edit_vnors ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edituv_edges()

struct GPUBatch* DRW_mesh_batch_cache_get_edituv_edges ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edituv_facedots()

struct GPUBatch* DRW_mesh_batch_cache_get_edituv_facedots ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edituv_faces()

struct GPUBatch* DRW_mesh_batch_cache_get_edituv_faces ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edituv_faces_stretch_angle()

struct GPUBatch* DRW_mesh_batch_cache_get_edituv_faces_stretch_angle ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_edituv_faces_stretch_area()

struct GPUBatch* DRW_mesh_batch_cache_get_edituv_faces_stretch_area ( struct Mesh me,
float **  tot_area,
float **  tot_uv_area 
)

◆ DRW_mesh_batch_cache_get_edituv_verts()

struct GPUBatch* DRW_mesh_batch_cache_get_edituv_verts ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_facedots_with_select_id()

struct GPUBatch* DRW_mesh_batch_cache_get_facedots_with_select_id ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_loose_edges()

struct GPUBatch* DRW_mesh_batch_cache_get_loose_edges ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_sculpt_overlays()

struct GPUBatch* DRW_mesh_batch_cache_get_sculpt_overlays ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_surface()

struct GPUBatch* DRW_mesh_batch_cache_get_surface ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_surface_edges()

struct GPUBatch* DRW_mesh_batch_cache_get_surface_edges ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_surface_sculpt()

struct GPUBatch* DRW_mesh_batch_cache_get_surface_sculpt ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_surface_shaded()

struct GPUBatch** DRW_mesh_batch_cache_get_surface_shaded ( struct Mesh me,
struct GPUMaterial **  gpumat_array,
uint  gpumat_array_len 
)

◆ DRW_mesh_batch_cache_get_surface_texpaint()

struct GPUBatch** DRW_mesh_batch_cache_get_surface_texpaint ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_surface_texpaint_single()

struct GPUBatch* DRW_mesh_batch_cache_get_surface_texpaint_single ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_surface_vertpaint()

struct GPUBatch* DRW_mesh_batch_cache_get_surface_vertpaint ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_surface_weights()

struct GPUBatch* DRW_mesh_batch_cache_get_surface_weights ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_triangles_with_select_id()

struct GPUBatch* DRW_mesh_batch_cache_get_triangles_with_select_id ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_uv_edges()

struct GPUBatch* DRW_mesh_batch_cache_get_uv_edges ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_verts_with_select_id()

struct GPUBatch* DRW_mesh_batch_cache_get_verts_with_select_id ( struct Mesh me)

◆ DRW_mesh_batch_cache_get_wireframes_face()

struct GPUBatch* DRW_mesh_batch_cache_get_wireframes_face ( struct Mesh me)

◆ DRW_mesh_batch_cache_pos_vertbuf_get()

struct GPUVertBuf* DRW_mesh_batch_cache_pos_vertbuf_get ( struct Mesh me)

◆ DRW_mesh_batch_cache_validate()

void DRW_mesh_batch_cache_validate ( struct Mesh me)

◆ DRW_mesh_material_count_get()

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().

◆ DRW_metaball_batch_cache_get_edge_detection()

struct GPUBatch* DRW_metaball_batch_cache_get_edge_detection ( struct Object ob,
bool *  r_is_manifold 
)

◆ DRW_metaball_batch_cache_get_surface_shaded()

struct GPUBatch** DRW_metaball_batch_cache_get_surface_shaded ( struct Object ob,
struct MetaBall mb,
struct GPUMaterial **  gpumat_array,
uint  gpumat_array_len 
)

◆ DRW_metaball_batch_cache_get_triangles_with_normals()

struct GPUBatch* DRW_metaball_batch_cache_get_triangles_with_normals ( struct Object ob)

◆ DRW_metaball_batch_cache_get_wireframes_face()

struct GPUBatch* DRW_metaball_batch_cache_get_wireframes_face ( struct Object ob)

◆ DRW_metaball_material_count_get()

int DRW_metaball_material_count_get ( struct MetaBall mb)

◆ DRW_particle_batch_cache_dirty_tag()

void DRW_particle_batch_cache_dirty_tag ( struct ParticleSystem psys,
int  mode 
)

◆ DRW_particle_batch_cache_free()

void DRW_particle_batch_cache_free ( struct ParticleSystem psys)

◆ DRW_particles_batch_cache_get_dots()

struct GPUBatch* DRW_particles_batch_cache_get_dots ( struct Object object,
struct ParticleSystem psys 
)

◆ DRW_particles_batch_cache_get_edit_inner_points()

struct GPUBatch* DRW_particles_batch_cache_get_edit_inner_points ( struct Object object,
struct ParticleSystem psys,
struct PTCacheEdit edit 
)

◆ DRW_particles_batch_cache_get_edit_strands()

struct GPUBatch* DRW_particles_batch_cache_get_edit_strands ( struct Object object,
struct ParticleSystem psys,
struct PTCacheEdit edit,
bool  use_weight 
)

◆ DRW_particles_batch_cache_get_edit_tip_points()

struct GPUBatch* DRW_particles_batch_cache_get_edit_tip_points ( struct Object object,
struct ParticleSystem psys,
struct PTCacheEdit edit 
)

◆ DRW_particles_batch_cache_get_hair()

struct GPUBatch* DRW_particles_batch_cache_get_hair ( struct Object object,
struct ParticleSystem psys,
struct ModifierData md 
)

◆ DRW_pointcloud_batch_cache_dirty_tag()

void DRW_pointcloud_batch_cache_dirty_tag ( struct PointCloud pointcloud,
int  mode 
)

◆ DRW_pointcloud_batch_cache_free()

void DRW_pointcloud_batch_cache_free ( struct PointCloud pointcloud)

◆ DRW_pointcloud_batch_cache_get_dots()

struct GPUBatch* DRW_pointcloud_batch_cache_get_dots ( struct Object ob)

◆ DRW_pointcloud_batch_cache_get_surface()

struct GPUBatch* DRW_pointcloud_batch_cache_get_surface ( struct Object ob)

◆ DRW_pointcloud_batch_cache_validate()

void DRW_pointcloud_batch_cache_validate ( struct PointCloud pointcloud)

◆ DRW_pointcloud_material_count_get()

int DRW_pointcloud_material_count_get ( struct PointCloud pointcloud)

◆ DRW_vertbuf_create_wiredata()

void DRW_vertbuf_create_wiredata ( struct GPUVertBuf vbo,
const int  vert_len 
)

◆ DRW_volume_batch_cache_dirty_tag()

void DRW_volume_batch_cache_dirty_tag ( struct Volume volume,
int  mode 
)

◆ DRW_volume_batch_cache_free()

void DRW_volume_batch_cache_free ( struct Volume volume)

◆ DRW_volume_batch_cache_get_selection_surface()

struct GPUBatch* DRW_volume_batch_cache_get_selection_surface ( struct Volume volume)

◆ DRW_volume_batch_cache_get_wireframes_face()

struct GPUBatch* DRW_volume_batch_cache_get_wireframes_face ( struct Volume volume)

◆ DRW_volume_batch_cache_validate()

void DRW_volume_batch_cache_validate ( struct Volume volume)

◆ DRW_volume_material_count_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().