MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / DrawString

Method DrawString

src/SB/Core/gc/iTRC.cpp:254–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254S32 ROMFont::DrawString(S32 param_1, S32 param_2, char* string)
255{
256 S32 iVar1;
257 S32 x;
258 S32 y;
259 S32 width;
260 void* image[3];
261
262 iVar1 = 0;
263 while (*string != '\0')
264 {
265 string = OSGetFontTexture(string, image, (s32*)&x, (s32*)&y, (s32*)&width);
266 ROMFont::LoadSheet(image[0]);
267 ROMFont::DrawCell(param_1 + iVar1, param_2, x, y);
268 iVar1 = iVar1 + width;
269 }
270 return iVar1;
271}
272
273S32 ROMFont::GetWidth(char* string)
274{

Callers

nothing calls this directly

Calls 1

OSGetFontTextureFunction · 0.85

Tested by

no test coverage detected