MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / onRender

Method onRender

Engine/source/gui/core/guiControl.cpp:436–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434//-----------------------------------------------------------------------------
435
436void GuiControl::onRender(Point2I offset, const RectI &updateRect)
437{
438 RectI ctrlRect(offset, getExtent());
439
440 //if opaque, fill the update rect with the fill color
441 if ( mProfile->mOpaque )
442 GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColor);
443
444 //if there's a border, draw the border
445 if ( mProfile->mBorder )
446 renderBorder(ctrlRect, mProfile);
447
448 // Render Children
449 renderChildControls(offset, updateRect);
450}
451
452//-----------------------------------------------------------------------------
453

Callers 3

renderFrameMethod · 0.45
renderFrameMethod · 0.45
renderChildControlsMethod · 0.45

Calls 3

renderBorderFunction · 0.85
drawRectFillMethod · 0.80
getDrawUtilMethod · 0.80

Tested by

no test coverage detected