diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-04-05 16:36:38 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-04-05 17:08:46 +0300 |
commit | cadef79a52cbe3d70488ef5fd70c805a872b17f9 (patch) | |
tree | c934d71c425a3e9c669841f38253ce221b8f92c8 /source/blender/gpu/GPU_batch.h | |
parent | d48597eb5422b33d5edc80f3b6d8d927f2f40444 (diff) |
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.
Diffstat (limited to 'source/blender/gpu/GPU_batch.h')
-rw-r--r-- | source/blender/gpu/GPU_batch.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |