Go to the source code of this file.
|
| enum | { DRW_MESH_WEIGHT_STATE_MULTIPAINT = (1 << 0)
, DRW_MESH_WEIGHT_STATE_AUTO_NORMALIZE = (1 << 1)
, DRW_MESH_WEIGHT_STATE_LOCK_RELATIVE = (1 << 2)
} |
| |
| enum | eMRDataType { MR_DATA_POLY_NOR = 1 << 1
, MR_DATA_LOOP_NOR = 1 << 2
, MR_DATA_LOOPTRI = 1 << 3
, MR_DATA_TAN_LOOP_NOR = 1 << 4
} |
| |
| enum | eMRExtractType { MR_EXTRACT_BMESH
, MR_EXTRACT_MAPPED
, MR_EXTRACT_MESH
} |
| |
| enum | DRWBatchFlag {
MBC_SURFACE = (1 << 0)
, MBC_SURFACE_WEIGHTS = (1 << 1)
, MBC_EDIT_TRIANGLES = (1 << 2)
, MBC_EDIT_VERTICES = (1 << 3)
,
MBC_EDIT_EDGES = (1 << 4)
, MBC_EDIT_VNOR = (1 << 5)
, MBC_EDIT_LNOR = (1 << 6)
, MBC_EDIT_FACEDOTS = (1 << 7)
,
MBC_EDIT_MESH_ANALYSIS = (1 << 8)
, MBC_EDITUV_FACES_STRETCH_AREA = (1 << 9)
, MBC_EDITUV_FACES_STRETCH_ANGLE = (1 << 10)
, MBC_EDITUV_FACES = (1 << 11)
,
MBC_EDITUV_EDGES = (1 << 12)
, MBC_EDITUV_VERTS = (1 << 13)
, MBC_EDITUV_FACEDOTS = (1 << 14)
, MBC_EDIT_SELECTION_VERTS = (1 << 15)
,
MBC_EDIT_SELECTION_EDGES = (1 << 16)
, MBC_EDIT_SELECTION_FACES = (1 << 17)
, MBC_EDIT_SELECTION_FACEDOTS = (1 << 18)
, MBC_ALL_VERTS = (1 << 19)
,
MBC_ALL_EDGES = (1 << 20)
, MBC_LOOSE_EDGES = (1 << 21)
, MBC_EDGE_DETECTION = (1 << 22)
, MBC_WIRE_EDGES = (1 << 23)
,
MBC_WIRE_LOOPS = (1 << 24)
, MBC_WIRE_LOOPS_UVS = (1 << 25)
, MBC_SKIN_ROOTS = (1 << 26)
, MBC_SCULPT_OVERLAYS = (1 << 27)
} |
| |
|
| | BLI_STATIC_ASSERT (sizeof(DRW_MeshCDMask)<=sizeof(uint64_t), "DRW_MeshCDMask exceeds 64 bits") typedef enum eMRIterType |
| |
| BLI_INLINE int | mesh_render_mat_len_get (Mesh *me) |
| |
| void | mesh_buffer_cache_create_requested (struct TaskGraph *task_graph, MeshBatchCache *cache, MeshBufferCache mbc, Mesh *me, const bool is_editmode, const bool is_paint_mode, const bool is_mode_active, const float obmat[4][4], const bool do_final, const bool do_uvedit, const bool use_subsurf_fdots, const DRW_MeshCDMask *cd_layer_used, const Scene *scene, const ToolSettings *ts, const bool use_hide) |
| |
◆ FOREACH_MESH_BUFFER_CACHE
| #define FOREACH_MESH_BUFFER_CACHE |
( |
|
batch_cache, |
|
|
|
mbc |
|
) |
| |
Value:
mbc == &batch_cache->final || mbc == &batch_cache->cage || mbc == &batch_cache->uv_cage; \
mbc = (mbc == &batch_cache->final) ? \
&batch_cache->cage : \
((mbc == &batch_cache->cage) ? &batch_cache->uv_cage :
NULL))
Definition at line 184 of file draw_cache_extract.h.
◆ MBC_EDITUV
◆ DRW_MeshCDMask
◆ DRW_MeshWeightState
◆ DRWBatchFlag
◆ eMRDataType
◆ eMRExtractType
◆ MeshBatchCache
◆ MeshBufferCache
◆ anonymous enum
| Enumerator |
|---|
| DRW_MESH_WEIGHT_STATE_MULTIPAINT | |
| DRW_MESH_WEIGHT_STATE_AUTO_NORMALIZE | |
| DRW_MESH_WEIGHT_STATE_LOCK_RELATIVE | |
Definition at line 45 of file draw_cache_extract.h.
◆ DRWBatchFlag
| Enumerator |
|---|
| MBC_SURFACE | |
| MBC_SURFACE_WEIGHTS | |
| MBC_EDIT_TRIANGLES | |
| MBC_EDIT_VERTICES | |
| MBC_EDIT_EDGES | |
| MBC_EDIT_VNOR | |
| MBC_EDIT_LNOR | |
| MBC_EDIT_FACEDOTS | |
| MBC_EDIT_MESH_ANALYSIS | |
| MBC_EDITUV_FACES_STRETCH_AREA | |
| MBC_EDITUV_FACES_STRETCH_ANGLE | |
| MBC_EDITUV_FACES | |
| MBC_EDITUV_EDGES | |
| MBC_EDITUV_VERTS | |
| MBC_EDITUV_FACEDOTS | |
| MBC_EDIT_SELECTION_VERTS | |
| MBC_EDIT_SELECTION_EDGES | |
| MBC_EDIT_SELECTION_FACES | |
| MBC_EDIT_SELECTION_FACEDOTS | |
| MBC_ALL_VERTS | |
| MBC_ALL_EDGES | |
| MBC_LOOSE_EDGES | |
| MBC_EDGE_DETECTION | |
| MBC_WIRE_EDGES | |
| MBC_WIRE_LOOPS | |
| MBC_WIRE_LOOPS_UVS | |
| MBC_SKIN_ROOTS | |
| MBC_SCULPT_OVERLAYS | |
Definition at line 149 of file draw_cache_extract.h.
◆ eMRDataType
| Enumerator |
|---|
| MR_DATA_POLY_NOR | |
| MR_DATA_LOOP_NOR | |
| MR_DATA_LOOPTRI | |
| MR_DATA_TAN_LOOP_NOR | Force loop normals calculation.
|
Definition at line 75 of file draw_cache_extract.h.
◆ eMRExtractType
| Enumerator |
|---|
| MR_EXTRACT_BMESH | |
| MR_EXTRACT_MAPPED | |
| MR_EXTRACT_MESH | |
Definition at line 83 of file draw_cache_extract.h.
◆ BLI_STATIC_ASSERT()
◆ mesh_buffer_cache_create_requested()
| void mesh_buffer_cache_create_requested |
( |
struct TaskGraph * |
task_graph, |
|
|
MeshBatchCache * |
cache, |
|
|
MeshBufferCache |
mbc, |
|
|
Mesh * |
me, |
|
|
const bool |
is_editmode, |
|
|
const bool |
is_paint_mode, |
|
|
const bool |
is_mode_active, |
|
|
const float |
obmat[4][4], |
|
|
const bool |
do_final, |
|
|
const bool |
do_uvedit, |
|
|
const bool |
use_subsurf_fdots, |
|
|
const DRW_MeshCDMask * |
cd_layer_used, |
|
|
const Scene * |
scene, |
|
|
const ToolSettings * |
ts, |
|
|
const bool |
use_hide |
|
) |
| |
Definition at line 5908 of file draw_cache_extract_mesh.c.
References BLI_addtail(), BLI_listbase_is_empty(), BLI_task_graph_edge_create(), BLI_task_graph_node_push_work(), BLI_task_graph_work_and_wait(), eMRIterType, EXTRACT, extract_lines, extract_lines_with_lines_loose, extract_single_threaded_task_data_free(), extract_single_threaded_task_node_create(), extract_task_create(), extract_task_data_create_lines_loose(), MeshBufferCache::ibo, MeshBufferCache::lines, MeshBufferCache::lines_loose, MEM_callocN, mesh_extract_render_data_node_create(), mesh_render_data_create(), NULL, PIL_check_seconds_timer(), scene, KDL::tan(), UserDataInitTaskData::task_counters, ExtractSingleThreadedTaskData::task_datas, UserDataInitTaskData::task_datas, TEST_ASSIGN, MeshRenderData::use_final_mesh, MeshRenderData::use_hide, MeshRenderData::use_subsurf_fdots, and user_data_init_task_node_create().
Referenced by DRW_mesh_batch_cache_create_requested().
◆ mesh_render_mat_len_get()
◆ eMRIterType