diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-31 19:43:19 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-31 20:09:20 +0300 |
commit | 712885c30ef2a8dbde91b7d8b4ffb9784a70fca5 (patch) | |
tree | ec2e82668e1524b82d77d8b20950f56d6c0e7e4c /source/blender/draw/intern/draw_cache_impl.h | |
parent | f43e3d0b6bee3bef69649e4ebb85bdebdf19e8ce (diff) |
DRW: Add wireframe buffer texture generation for wireframe drawing.
Only OB_MESH is supported for now.
Creates a simple index buffer with negative indices if the edges is not a
real edge.
Also create the buffer texture representation of this buffer along with the
pos_in_order buffer texture.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl.h b/source/blender/draw/intern/draw_cache_impl.h index f77dafc9b31..8a8d41cb38a 100644 --- a/source/blender/draw/intern/draw_cache_impl.h +++ b/source/blender/draw/intern/draw_cache_impl.h @@ -28,6 +28,7 @@ struct CurveCache; struct GPUMaterial; +struct GPUTexture; struct Gwn_Batch; struct Gwn_IndexBuf; struct Gwn_VertBuf; @@ -121,6 +122,9 @@ struct Gwn_Batch *DRW_mesh_batch_cache_get_overlay_facedots(struct Mesh *me); struct Gwn_Batch *DRW_mesh_batch_cache_get_facedots_with_select_id(struct Mesh *me, uint select_id_offset); struct Gwn_Batch *DRW_mesh_batch_cache_get_edges_with_select_id(struct Mesh *me, uint select_id_offset); struct Gwn_Batch *DRW_mesh_batch_cache_get_verts_with_select_id(struct Mesh *me, uint select_id_offset); +/* Object mode Wireframe overlays */ +void DRW_mesh_batch_cache_get_wireframes_face_texbuf( + struct Mesh *me, struct GPUTexture **verts_data, struct GPUTexture **face_indices, int *tri_count); void DRW_mesh_cache_sculpt_coords_ensure(struct Mesh *me); |