Use GPU_Buffers to draw wireframe when in dynamic-topology sculpt mode
authorNicholas Bishop <nicholasbishop@gmail.com>
Sun, 30 Dec 2012 18:30:13 +0000 (18:30 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Sun, 30 Dec 2012 18:30:13 +0000 (18:30 +0000)
commitd342e3ef0f0d864133ae1d40481c309b366bbec0
treed92f024f2ab6fcd6149e50704a54c12c9b5ebade
parent6ded71fb62e7f8e6791bd5a6d721b1bd9efe0b85
Use GPU_Buffers to draw wireframe when in dynamic-topology sculpt mode

This adds an override to the CDDM edge drawing function that switches
to GPU_Buffers drawing for PBVHes of type PBVH_BMESH.

Within the GPU_Buffers code, glPolygonMode() is used to draw lines
instead of faces.
source/blender/blenkernel/BKE_pbvh.h
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/pbvh.c
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/gpu/GPU_buffers.h
source/blender/gpu/intern/gpu_buffers.c