Sculpt Draw: Add support for wireframe geometry
authorClément Foucault <foucault.clem@gmail.com>
Thu, 14 Feb 2019 19:24:13 +0000 (20:24 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 18 Feb 2019 13:17:57 +0000 (14:17 +0100)
commit9ab99ff26b57b2f0c898356d365636697d67e345
treeec792dde760c6af0346693a161a34c3c44a0a123
parent2cccffd20b67beecb5743e8871dbda779d1e03f1
Sculpt Draw: Add support for wireframe geometry

This introduce the wireframe batches. Creating the indices buffer does
not seems to slow down the sculpt in my testing (but it is kind of hard to
test reliably)

This includes a bit of cleanup in gpu_buffers.c.
source/blender/blenkernel/BKE_pbvh.h
source/blender/blenkernel/intern/pbvh.c
source/blender/draw/intern/DRW_render.h
source/blender/draw/intern/draw_manager_data.c
source/blender/draw/modes/overlay_mode.c
source/blender/draw/modes/sculpt_mode.c
source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl
source/blender/gpu/GPU_buffers.h
source/blender/gpu/intern/gpu_buffers.c