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 12:38:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-01-15 12:38:06 +0300
commitbfada6cc4a22ba2c8c7ad504bc5133b9bf9ae890 (patch)
tree7bab8edfce8f928de689ba97c256fcaf299d66be /source/blender/gpu/GPU_batch.h
parentae6cc4a21db52cfaca5898a4f98a6eb8def2e65a (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.h3
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);