diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-26 03:16:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-26 03:16:17 +0300 |
commit | 741ed1029e57f4b5d3fc0f85c25ac5791d582e9a (patch) | |
tree | b6618a9a44913276e67782bbc5a4eab40d67687c /source/blender/draw/intern/draw_cache_impl.h | |
parent | e40870c47967144aa75c9185a6d0ba1e149bb4e2 (diff) |
Cleanup: naming of DRW mesh weight API
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl.h b/source/blender/draw/intern/draw_cache_impl.h index 372ec6cdf6c..ca14d6ae3cc 100644 --- a/source/blender/draw/intern/draw_cache_impl.h +++ b/source/blender/draw/intern/draw_cache_impl.h @@ -97,26 +97,27 @@ struct GPUBatch *DRW_lattice_batch_cache_get_all_verts(struct Lattice *lt); struct GPUBatch *DRW_lattice_batch_cache_get_overlay_verts(struct Lattice *lt); /* Vertex Group Selection and display options */ -typedef struct VertexWeightSelection { +struct DRW_MeshWeightState { int defgroup_active; - int defgroup_tot; + int defgroup_len; short flags; char alert_mode; /* Set of all selected bones for Multipaint. */ - int defgroup_sel_tot; bool *defgroup_sel; -} VertexWeightSelection; + int defgroup_sel_len; +}; +/* DRW_MeshWeightState.flags */ enum { - VWEIGHT_MULTIPAINT = (1 << 0), - VWEIGHT_AUTO_NORMALIZE = (1 << 1), + DRW_MESH_WEIGHT_STATE_MULTIPAINT = (1 << 0), + DRW_MESH_WEIGHT_STATE_AUTO_NORMALIZE = (1 << 1), }; -void DRW_vweight_selection_clear(struct VertexWeightSelection *sel); -void DRW_vweight_selection_copy(struct VertexWeightSelection *sel, const struct VertexWeightSelection *src); -bool DRW_vweight_selection_compare(const struct VertexWeightSelection *a, const struct VertexWeightSelection *b); +void DRW_mesh_weight_state_clear(struct DRW_MeshWeightState *wstate); +void DRW_mesh_weight_state_copy(struct DRW_MeshWeightState *wstate_dst, const struct DRW_MeshWeightState *wstate_src); +bool DRW_mesh_weight_state_compare(const struct DRW_MeshWeightState *a, const struct DRW_MeshWeightState *b); /* Mesh */ struct GPUBatch **DRW_mesh_batch_cache_get_surface_shaded( @@ -130,7 +131,7 @@ struct GPUBatch *DRW_mesh_batch_cache_get_weight_overlay_verts(struct Mesh *me); struct GPUBatch *DRW_mesh_batch_cache_get_all_edges(struct Mesh *me); struct GPUBatch *DRW_mesh_batch_cache_get_all_triangles(struct Mesh *me); struct GPUBatch *DRW_mesh_batch_cache_get_triangles_with_normals(struct Mesh *me); -struct GPUBatch *DRW_mesh_batch_cache_get_triangles_with_normals_and_weights(struct Mesh *me, const struct VertexWeightSelection *vwsel); +struct GPUBatch *DRW_mesh_batch_cache_get_triangles_with_normals_and_weights(struct Mesh *me, const struct DRW_MeshWeightState *wstate); struct GPUBatch *DRW_mesh_batch_cache_get_triangles_with_normals_and_vert_colors(struct Mesh *me); struct GPUBatch *DRW_mesh_batch_cache_get_triangles_with_select_id(struct Mesh *me, bool use_hide, uint select_id_offset); struct GPUBatch *DRW_mesh_batch_cache_get_triangles_with_select_mask(struct Mesh *me, bool use_hide); |