MCPcopy Create free account
hub / github.com/SpartanJ/eepp / draw

Method draw

src/eepp/ui/uiloader.cpp:41–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void UILoader::draw() {
42 UIWidget::draw();
43
44 Rectf rect( mScreenPos.trunc(), Sizef( (int)mSize.x, (int)mSize.y ) );
45 mArc.setPosition( rect.getCenter() );
46 mCircle.setPosition( rect.getCenter() );
47
48 ClippingMask* clippingMask = Renderer::instance()->getClippingMask();
49
50 if ( mCircle.getRadius() > 0 ) {
51 clippingMask->setMaskMode( ClippingMask::Exclusive );
52 clippingMask->clearMasks();
53 clippingMask->appendMask( mCircle );
54 clippingMask->stencilMaskEnable();
55 }
56
57 mArc.draw();
58
59 if ( mCircle.getRadius() > 0 ) {
60 clippingMask->stencilMaskDisable();
61 }
62}
63
64void UILoader::scheduledUpdate( const Time& time ) {
65 if ( !mVisible )

Callers

nothing calls this directly

Calls 10

truncMethod · 0.80
getClippingMaskMethod · 0.80
setMaskModeMethod · 0.80
clearMasksMethod · 0.80
appendMaskMethod · 0.80
stencilMaskEnableMethod · 0.80
stencilMaskDisableMethod · 0.80
setPositionMethod · 0.45
getCenterMethod · 0.45
getRadiusMethod · 0.45

Tested by

no test coverage detected