MCPcopy Create free account
hub / github.com/DISTRHO/DPF / beginFrame

Method beginFrame

dgl/src/NanoVG.cpp:363–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361// -----------------------------------------------------------------------
362
363void NanoVG::beginFrame(const uint width, const uint height, const float scaleFactor)
364{
365 DISTRHO_SAFE_ASSERT_RETURN(scaleFactor > 0.0f,);
366 DISTRHO_SAFE_ASSERT_RETURN(! fInFrame,);
367 fInFrame = true;
368
369 if (fContext != nullptr)
370 nvgBeginFrame(fContext, static_cast<int>(width), static_cast<int>(height), scaleFactor);
371}
372
373void NanoVG::beginFrame(Widget* const widget)
374{

Callers 1

onDisplayMethod · 0.80

Calls 5

nvgBeginFrameFunction · 0.85
getTopLevelWidgetMethod · 0.80
getWidthMethod · 0.45
getHeightMethod · 0.45
getScaleFactorMethod · 0.45

Tested by

no test coverage detected