MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / print

Function print

TheForceEngine/TFE_DarkForces/GameUI/uiDraw.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 DeltFrame s_cursor;
10
11 void print(const char* text, s32 x0, s32 y0, u8 color, u8* framebuffer)
12 {
13 LRect frame;
14 frame.left = x0;
15 frame.top = y0;
16 frame.right = 320;
17 frame.bottom = 200;
18
19 lfont_setFrame(&frame);
20 lfont_setColor(color);
21 lfont_drawText(text, framebuffer);
22 }
23
24 s32 getStringPixelLength(const char* str)
25 {

Callers 2

drawEditBoxFunction · 0.70
agentMenu_drawFunction · 0.70

Calls 3

lfont_setFrameFunction · 0.85
lfont_setColorFunction · 0.85
lfont_drawTextFunction · 0.85

Tested by

no test coverage detected