MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ui_StartDraw

Function ui_StartDraw

ui/UIDraw.cpp:102–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100// DRAWING PRIMATIVE FUNCTIONS
101
102void ui_StartDraw(int left, int top, int right, int bottom) {
103 m_UIDrawLeft = left;
104 m_UIDrawTop = top;
105 m_UIDrawRight = right;
106 m_UIDrawBottom = bottom;
107 m_UIDrawAlpha = m_UICharAlpha = 255;
108
109 rend_StartFrame(m_UIDrawLeft, m_UIDrawTop, m_UIDrawRight, m_UIDrawBottom);
110 grtext_SetParameters(0, 0, right - left + 1, bottom - top + 1);
111}
112
113void ui_EndDraw() {
114 grtext_Flush();

Callers 3

ui_DoCursorFunction · 0.85
RenderMethod · 0.85
DoUIMethod · 0.85

Calls 2

grtext_SetParametersFunction · 0.85
rend_StartFrameFunction · 0.50

Tested by

no test coverage detected