diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-09-13 18:36:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-09-13 20:54:32 +0300 |
commit | 55fb6e7096536a59ec306eb67889f8cf2f4e94bc (patch) | |
tree | 67018a6e61e421832737a128753bafeb066d3236 /source/blender/gpu/GPU_immediate_util.h | |
parent | d5478e20cc52641ea44fb3acfd6a58fc021978df (diff) |
GPU_immediate_util: Add x,y radius to circle draw
A version of circle drawing for non 1:1 aspects
Diffstat (limited to 'source/blender/gpu/GPU_immediate_util.h')
-rw-r--r-- | source/blender/gpu/GPU_immediate_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_immediate_util.h b/source/blender/gpu/GPU_immediate_util.h index e3a697fd229..31a90aa14b8 100644 --- a/source/blender/gpu/GPU_immediate_util.h +++ b/source/blender/gpu/GPU_immediate_util.h @@ -32,6 +32,9 @@ void imm_cpack(uint x); void imm_draw_circle_wire_2d(uint shdr_pos, float x, float y, float radius, int nsegments); void imm_draw_circle_fill_2d(uint shdr_pos, float x, float y, float radius, int nsegments); +void imm_draw_circle_wire_aspect_2d(uint shdr_pos, float x, float y, float radius_x, float radius_y, int nsegments); +void imm_draw_circle_fill_aspect_2d(uint shdr_pos, float x, float y, float radius_x, float radius_y, int nsegments); + /* use this version when Gwn_VertFormat has a vec3 position */ void imm_draw_circle_wire_3d(uint pos, float x, float y, float radius, int nsegments); void imm_draw_circle_fill_3d(uint pos, float x, float y, float radius, int nsegments); |