diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-14 10:32:25 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-14 10:32:25 +0400 |
commit | 68b8f3b0a84d79ca75e3c4708836be6c83985abe (patch) | |
tree | 396680644ce15876d8a10fc34593bebc61884c03 /source/blender/gpu/GPU_buffers.h | |
parent | b37a355c8e0a79ea447cd0a4fd06dc30724a3374 (diff) |
Skip hidden elements in PBVH iterator, raycast, and drawing.
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r-- | source/blender/gpu/GPU_buffers.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index 33055b5efd5..cee9039e3f9 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -42,6 +42,7 @@ struct DerivedMesh; struct DMFlagMat; struct DMGridData; +struct CustomData; struct GHash; struct DMGridData; struct GPUVertPointLink; @@ -159,12 +160,14 @@ int GPU_buffer_legacy(struct DerivedMesh *dm ); typedef struct GPU_Buffers GPU_Buffers; GPU_Buffers *GPU_build_mesh_buffers(int (*face_vert_indices)[4], - struct MFace *mface, int *face_indices, int totface); + struct MFace *mface, struct MVert *mvert, + int *face_indices, int totface); void GPU_update_mesh_buffers(GPU_Buffers *buffers, struct MVert *mvert, int *vert_indices, int totvert); -GPU_Buffers *GPU_build_grid_buffers(int totgrid, int gridsize); +GPU_Buffers *GPU_build_grid_buffers(int *grid_indices, int totgrid, + unsigned int **grid_hidden, int gridsize); void GPU_update_grid_buffers(GPU_Buffers *buffers, struct DMGridData **grids, const struct DMFlagMat *grid_flag_mats, |