MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / ofRect

Function ofRect

Source/OpenFrameworksPort.cpp:281–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void 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
291void ofRect(const ofRectangle& rect, float cornerRadius /*=3*/)
292{

Callers 15

RenderMethod · 0.85
DrawModuleMethod · 0.85
DrawModuleMethod · 0.85
DrawModuleMethod · 0.85
DrawModuleMethod · 0.85
RenderMethod · 0.85
RenderOverlayMethod · 0.85
DrawDisplayModuleRectMethod · 0.85
DrawToFramebufferMethod · 0.85
DrawControlsMethod · 0.85
RenderMethod · 0.85

Calls 4

nvgBeginPathFunction · 0.85
nvgRoundedRectFunction · 0.85
nvgFillFunction · 0.85
nvgStrokeFunction · 0.85

Tested by 2

DrawModuleMethod · 0.68
DrawModuleMethod · 0.68