@@ -144,8 +144,19 @@ func (list DrawList) AddCircleFilled(center Vec2, radius float32, col uint32) {
144
144
145
145
// AddCircleFilledV adds a filled circle to the draw list. min is the
146
146
// upper-left corner of the rectangle, and max is the lower right corner.
147
- // rectangles with dimensions of 1 pixel are not rendererd properly.
148
147
func (list DrawList ) AddCircleFilledV (center Vec2 , radius float32 , col uint32 , numSegments int ) {
149
148
centerArg , _ := center .wrapped ()
150
149
C .iggAddCircleFilled (list .handle (), centerArg , C .float (radius ), C .ImU32 (col ), C .int (numSegments ))
151
150
}
151
+
152
+ // AddCircle calls addCircleV with a numSegments value of 12
153
+ func (list DrawList ) AddCircle (center Vec2 , radius float32 , col uint32 ) {
154
+ list .AddCircleV (center , radius , col , 12 , 1.0 )
155
+ }
156
+
157
+ // AddCircleV adds a unfilled circle to the draw list. min is the upper-left
158
+ // corner of the rectangle, and max is the lower right corner.
159
+ func (list DrawList ) AddCircleV (center Vec2 , radius float32 , col uint32 , numSegments int , thickness float32 ) {
160
+ centerArg , _ := center .wrapped ()
161
+ C .iggAddCircle (list .handle (), centerArg , C .float (radius ), C .ImU32 (col ), C .int (numSegments ), C .float (thickness ))
162
+ }
0 commit comments