From 55fb6e7096536a59ec306eb67889f8cf2f4e94bc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 14 Sep 2017 01:36:23 +1000 Subject: GPU_immediate_util: Add x,y radius to circle draw A version of circle drawing for non 1:1 aspects --- source/blender/gpu/GPU_immediate_util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/gpu/GPU_immediate_util.h') 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); -- cgit v1.2.3