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

Function ui_DrawSetTextType

ui/UIDraw.cpp:254–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252int ui_GetTextHeight(const char *text) { return grtext_GetHeight(text); }
253
254void ui_DrawSetTextType(int type) {
255 switch (type) {
256 case UI_TEXTTYPE_SHADOW:
257 m_UITextFlags = GRTEXTFLAG_SHADOW;
258 break;
259 case UI_TEXTTYPE_SATURATE:
260 m_UITextFlags = GRTEXTFLAG_SATURATE;
261 break;
262 default:
263 m_UITextFlags = 0;
264 }
265}
266
267// draws a line of text.
268void ui_DrawString(ddgr_color col, int x, int y, const char *str) {

Callers 4

OnDrawMethod · 0.85
DrawTextMethod · 0.85
drawMethod · 0.85
OnDrawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected