From cadef79a52cbe3d70488ef5fd70c805a872b17f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 5 Apr 2018 15:36:38 +0200 Subject: GPUBatch: Change preset managment system. Now use a list of preset batches with a function to add new ones to this list. This removes the need of new functions all over the place to reset/exit. --- source/blender/gpu/GPU_batch.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/gpu/GPU_batch.h') diff --git a/source/blender/gpu/GPU_batch.h b/source/blender/gpu/GPU_batch.h index 52cf37a7457..760faeff7b1 100644 --- a/source/blender/gpu/GPU_batch.h +++ b/source/blender/gpu/GPU_batch.h @@ -67,6 +67,7 @@ Gwn_Batch *GPU_batch_preset_sphere(int lod) ATTR_WARN_UNUSED_RESULT; Gwn_Batch *GPU_batch_preset_sphere_wire(int lod) ATTR_WARN_UNUSED_RESULT; void gpu_batch_presets_init(void); +void gpu_batch_presets_register(Gwn_Batch *preset_batch); void gpu_batch_presets_reset(void); void gpu_batch_presets_exit(void); -- cgit v1.2.3