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

Method onRender

Engine/source/gui/containers/guiTabBookCtrl.cpp:482–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480//-----------------------------------------------------------------------------
481
482void GuiTabBookCtrl::onRender(Point2I offset, const RectI &updateRect)
483{
484 RectI tabRect = mTabRect;
485 tabRect.point += offset;
486 RectI pageRect = mPageRect;
487 pageRect.point += offset;
488
489 // We're so nice we'll store the old modulation before we clear it for our rendering! :)
490 ColorI oldModulation;
491 GFX->getDrawUtil()->getBitmapModulation( &oldModulation );
492
493 // Wipe it out
494 GFX->getDrawUtil()->clearBitmapModulation();
495
496 Parent::onRender(offset, updateRect);
497
498 // Clip to tab area
499 RectI savedClipRect = GFX->getClipRect();
500 RectI clippedTabRect = tabRect;
501 clippedTabRect.intersect( savedClipRect );
502 GFX->setClipRect( clippedTabRect );
503
504 // Render our tabs
505 renderTabs( offset, tabRect );
506
507 // Restore Rect.
508 GFX->setClipRect( savedClipRect );
509
510 // Restore old modulation
511 GFX->getDrawUtil()->setBitmapModulation( oldModulation );
512}
513
514//-----------------------------------------------------------------------------
515

Callers

nothing calls this directly

Calls 6

getBitmapModulationMethod · 0.80
getDrawUtilMethod · 0.80
clearBitmapModulationMethod · 0.80
setBitmapModulationMethod · 0.80
intersectMethod · 0.45
setClipRectMethod · 0.45

Tested by

no test coverage detected