diff options
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r-- | source/blender/gpu/GPU_buffers.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index 36fbd818f11..70ca44c2a3a 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -39,12 +39,15 @@ #define DEBUG_VBO(X) #endif +struct BMesh; struct CCGElem; struct CCGKey; struct CustomData; struct DMFlagMat; struct DerivedMesh; +struct GHash; struct GPUVertPointLink; +struct PBVH; typedef struct GPUBuffer { int size; /* in bytes */ @@ -168,6 +171,14 @@ void GPU_update_mesh_buffers(GPU_Buffers *buffers, MVert *mvert, GPU_Buffers *GPU_build_grid_buffers(int *grid_indices, int totgrid, unsigned int **grid_hidden, int gridsize); +GPU_Buffers *GPU_build_bmesh_buffers(int smooth_shading); + +void GPU_update_bmesh_buffers(GPU_Buffers *buffers, + struct BMesh *bm, + struct GHash *bm_faces, + struct GHash *bm_unique_verts, + struct GHash *bm_other_verts); + void GPU_update_grid_buffers(GPU_Buffers *buffers, struct CCGElem **grids, const struct DMFlagMat *grid_flag_mats, int *grid_indices, int totgrid, const struct CCGKey *key, |