From bfada6cc4a22ba2c8c7ad504bc5133b9bf9ae890 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 15 Jan 2018 20:38:06 +1100 Subject: 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. --- source/blender/gpu/GPU_batch.h | 3 +++ 1 file changed, 3 insertions(+) (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 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); -- cgit v1.2.3