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

Method imagePattern

dgl/src/NanoVG.cpp:800–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

798}
799
800NanoVG::Paint NanoVG::imagePattern(float ox, float oy, float ex, float ey, float angle, const NanoImage& image, float alpha)
801{
802 if (fContext == nullptr) return Paint();
803
804 const int imageId(image.fHandle.imageId);
805 DISTRHO_SAFE_ASSERT_RETURN(imageId != 0, Paint());
806
807 return nvgImagePattern(fContext, ox, oy, ex, ey, angle, imageId, alpha);
808}
809
810// -----------------------------------------------------------------------
811// Scissoring

Callers

nothing calls this directly

Calls 2

PaintClass · 0.85
nvgImagePatternFunction · 0.85

Tested by

no test coverage detected