diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-15 12:38:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-15 12:38:06 +0300 |
commit | bfada6cc4a22ba2c8c7ad504bc5133b9bf9ae890 (patch) | |
tree | 7bab8edfce8f928de689ba97c256fcaf299d66be /source/blender/gpu/GPU_batch.h | |
parent | ae6cc4a21db52cfaca5898a4f98a6eb8def2e65a (diff) |
GPU_batch: Add utility to create 2D shapes
Shapes are represented by compact byte array,
encoded by 'make_shape_2d_from_blend.py' in the tools repo.
Diffstat (limited to 'source/blender/gpu/GPU_batch.h')
-rw-r--r-- | source/blender/gpu/GPU_batch.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_batch.h b/source/blender/gpu/GPU_batch.h index a6aa529fd2d..8b2dc2af355 100644 --- a/source/blender/gpu/GPU_batch.h +++ b/source/blender/gpu/GPU_batch.h @@ -43,6 +43,9 @@ /* gpu_batch.c */ void GWN_batch_program_set_builtin(Gwn_Batch *, GPUBuiltinShader); +Gwn_Batch *GPU_batch_from_poly_2d_encoded( + const uchar *polys_flat, uint polys_flat_len, float min, float max); + void gpu_batch_init(void); void gpu_batch_exit(void); |