diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-09-26 10:51:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-09-26 10:51:47 +0300 |
commit | 1eb49f8a2fc33b17542eac950ebdc43aadb0f03e (patch) | |
tree | 0b8ce0f383200c5b06a3244136c737b88c432b03 /source/blender/gpu/GPU_immediate_util.h | |
parent | 63dfb5bb97b1a320a0f5e51eaca51d7b25902aa4 (diff) |
GPU_immediate_util: add cube drawing function
Diffstat (limited to 'source/blender/gpu/GPU_immediate_util.h')
-rw-r--r-- | source/blender/gpu/GPU_immediate_util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/gpu/GPU_immediate_util.h b/source/blender/gpu/GPU_immediate_util.h index e225c0569ba..c31d477ff5b 100644 --- a/source/blender/gpu/GPU_immediate_util.h +++ b/source/blender/gpu/GPU_immediate_util.h @@ -44,11 +44,13 @@ void imm_draw_disk_partial_fill_2d( float radius_inner, float radius_outer, int nsegments, float start, float sweep); void imm_draw_box_wire_2d(uint pos, float x1, float y1, float x2, float y2); - void imm_draw_box_wire_3d(uint pos, float x1, float y1, float x2, float y2); void imm_draw_box_checker_2d(float x1, float y1, float x2, float y2); +void imm_draw_cube_fill_3d(uint pos, const float co[3], const float aspect[3]); +void imm_draw_cube_wire_3d(uint pos, const float co[3], const float aspect[3]); + void imm_draw_cylinder_fill_normal_3d( uint pos, uint nor, float base, float top, float height, int slices, int stacks); |