MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Draw

Method Draw

ogsr_engine/xrGame/ui/UIStatic.cpp:131–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void CUIStatic::Draw()
132{
133 if (m_bClipper)
134 {
135 Frect clip_rect;
136 if (-1 == m_ClipRect.left && -1 == m_ClipRect.right && -1 == m_ClipRect.top)
137 {
138 Frect our_rect;
139 GetAbsoluteRect(our_rect);
140 clip_rect = our_rect;
141 Frect _r;
142 GetParent()->GetAbsoluteRect(_r);
143 clip_rect.intersection(our_rect, _r);
144 }
145 else
146 clip_rect = m_ClipRect;
147
148 UI()->PushScissor(clip_rect);
149 }
150
151 DrawTexture();
152 inherited::Draw();
153 DrawText();
154
155 if (m_bClipper)
156 UI()->PopScissor();
157}
158
159void CUIStatic::DrawText()
160{

Callers 2

DrawTextMethod · 0.45
DrawHighlightedTextMethod · 0.45

Calls 7

GetParentFunction · 0.85
UIFunction · 0.85
DrawFunction · 0.85
GetAbsoluteRectMethod · 0.80
intersectionMethod · 0.80
PushScissorMethod · 0.80
PopScissorMethod · 0.80

Tested by

no test coverage detected