Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-01-15 08:21:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-01-15 08:24:02 +0300
commitb1ac7571a81e13fb61e16738c1bc196ebb1a6eeb (patch)
tree896bce1fc2b349bd97a28ca33f5a355c4750d9fe /source/blender/gpu/GPU_batch.h
parent7c1286b2b7651562e744d531a3c4a8b518b2a852 (diff)
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)
Diffstat (limited to 'source/blender/gpu/GPU_batch.h')
-rw-r--r--source/blender/gpu/GPU_batch.h10
1 files changed, 8 insertions, 2 deletions
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__ */