From 595a491e63d6f3f3462675d38cfa71b4e784fe9c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 17 Jul 2015 03:36:03 +1000 Subject: Add tessellation data to DerivedMesh (LoopTri) This stores loop indices into the loop array giving easier acess to data such as vertex-colors and UV's, removing the need to store an MFace duplicate of custom-data. This doesn't yet move all internal code from MFace to LoopTri just yet. Only applies to: - opengl drawing - sculpting (pbvh) - vertex/weight paint Thanks to @psy-fi for review, fixes and improvements to drawing! --- source/blender/gpu/GPU_buffers.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/blender/gpu/GPU_buffers.h') diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index 9c2ca6c5305..12e66264661 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -212,9 +212,12 @@ void GPU_interleaved_attrib_unbind(void); typedef struct GPU_PBVH_Buffers GPU_PBVH_Buffers; /* build */ -GPU_PBVH_Buffers *GPU_build_mesh_pbvh_buffers(const int (*face_vert_indices)[4], - const struct MFace *mface, const struct MVert *mvert, - const int *face_indices, int totface); +GPU_PBVH_Buffers *GPU_build_mesh_pbvh_buffers( + const int (*face_vert_indices)[4], + const struct MPoly *mpoly, const struct MLoop *mloop, const struct MLoopTri *looptri, + const struct MVert *verts, + const int *face_indices, + const int face_indices_len); GPU_PBVH_Buffers *GPU_build_grid_pbvh_buffers(int *grid_indices, int totgrid, unsigned int **grid_hidden, int gridsize, const struct CCGKey *key); -- cgit v1.2.3