MCPcopy Create free account
hub / github.com/MyGUI/mygui / renderToTarget

Method renderToTarget

UnitTests/UnitTest_RTTLayer/MyGUI_RTTLayer.cpp:44–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 void RTTLayer::renderToTarget(IRenderTarget* _target, bool _update)
45 {
46 bool outOfDate = mOutOfDateRtt || isOutOfDate();
47
48 if (outOfDate || _update)
49 {
50 MyGUI::IRenderTarget* target = mTexture->getRenderTarget();
51 if (target != nullptr)
52 {
53 target->begin();
54
55 for (auto& childItem : mChildItems)
56 childItem->renderToTarget(target, _update);
57
58 target->end();
59 }
60 }
61
62 mOutOfDateRtt = false;
63 }
64
65 void RTTLayer::setTextureSize(const IntSize& _size)
66 {

Callers

nothing calls this directly

Calls 3

getRenderTargetMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected