| 279 | } |
| 280 | |
| 281 | void ofRect(float x, float y, float width, float height, float cornerRadius /*=3*/) |
| 282 | { |
| 283 | nvgBeginPath(gNanoVG); |
| 284 | nvgRoundedRect(gNanoVG, x, y, width, height, cornerRadius * gCornerRoundness); |
| 285 | if (sStyleStack.GetStyle().fill) |
| 286 | nvgFill(gNanoVG); |
| 287 | else |
| 288 | nvgStroke(gNanoVG); |
| 289 | } |
| 290 | |
| 291 | void ofRect(const ofRectangle& rect, float cornerRadius /*=3*/) |
| 292 | { |