diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-06-25 13:16:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-06-25 14:13:33 +0300 |
commit | 0a99072f0d88f6fa809680dfcabe7aba5d476e0a (patch) | |
tree | b72528a7dee7d491d0bbabf9d06bea119dedfbd4 /source/blender/gpu/GPU_draw.h | |
parent | 28dbd572a4675f86e2d8363e88b9556170204a61 (diff) |
GPU: move select index code out of WM
This avoids bad-level calls.
Diffstat (limited to 'source/blender/gpu/GPU_draw.h')
-rw-r--r-- | source/blender/gpu/GPU_draw.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_draw.h b/source/blender/gpu/GPU_draw.h index bc732387c85..90b65af87c8 100644 --- a/source/blender/gpu/GPU_draw.h +++ b/source/blender/gpu/GPU_draw.h @@ -160,6 +160,12 @@ struct DerivedMesh; void GPU_draw_update_fvar_offset(struct DerivedMesh *dm); #endif +/* utilities */ +void GPU_select_index_set(int index); +void GPU_select_index_get(int index, int *r_col); +int GPU_select_to_index(unsigned int col); +void GPU_select_to_index_array(unsigned int *col, const unsigned int size); + #ifdef __cplusplus } #endif |