From 50a46a5973d90787eaa37ea959b9035918a071af Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Sat, 25 Jul 2015 13:17:37 +0200 Subject: GPU buffer materials: Separate and reuse some shared code. Also avoid counting for information we already know, such as total loop triangles etc. --- source/blender/gpu/GPU_buffers.h | 3 +++ 1 file changed, 3 insertions(+) (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 a50d63d89ec..8bb3ef4a3bc 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -48,6 +48,7 @@ struct DMFlagMat; struct DerivedMesh; struct GSet; struct GPUVertPointLink; +struct GPUDrawObject; struct PBVH; struct MVert; @@ -71,6 +72,8 @@ typedef struct GPUBufferMaterial { short mat_nr; } GPUBufferMaterial; +void GPU_buffer_material_finalize(struct GPUDrawObject *gdo, GPUBufferMaterial *matinfo, int totmat); + /* meshes are split up by material since changing materials requires * GL state changes that can't occur in the middle of drawing an * array. -- cgit v1.2.3