From b1ac7571a81e13fb61e16738c1bc196ebb1a6eeb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 15 Jan 2018 16:21:23 +1100 Subject: Cleanup: split GPU_batch_presets into own file Mixing other batch code in this file easily shadowed existing variables. Keep presets separate (we may have more, 2D & 3D presets) --- source/blender/gpu/GPU_batch.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (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 6d16092996e..a6aa529fd2d 100644 --- a/source/blender/gpu/GPU_batch.h +++ b/source/blender/gpu/GPU_batch.h @@ -39,13 +39,19 @@ #include "GPU_shader.h" /* Extend GWN_batch_program_set to use Blender’s library of built-in shader programs. */ + +/* gpu_batch.c */ void GWN_batch_program_set_builtin(Gwn_Batch *, GPUBuiltinShader); +void gpu_batch_init(void); +void gpu_batch_exit(void); + +/* gpu_batch_presets.c */ /* Replacement for gluSphere */ Gwn_Batch *GPU_batch_preset_sphere(int lod); Gwn_Batch *GPU_batch_preset_sphere_wire(int lod); -void gpu_batch_init(void); -void gpu_batch_exit(void); +void gpu_batch_presets_init(void); +void gpu_batch_presets_exit(void); #endif /* __GPU_BATCH_H__ */ -- cgit v1.2.3