MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / initialize

Method initialize

engine/src/text.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void Font::initialize(int charsWide, int charsHigh, int charWidth, int charHeight,
22 float Scale, Camera* pCamera, ScreenRect* pScreen, TileAtlas* ptexatlas)
23{
24 atlas = ptexatlas;
25 pcamera = pCamera;
26 pscreen = pScreen;
27 scaleValue = Scale;
28 charsXYWH = ScreenRect(charsWide, charsHigh, charWidth, charHeight);
29 InitSpacings();
30}
31
32void Font::displayText(float x, float y, float w, float h,
33 float r, float g, float b, const char *string)

Callers 5

loadLevelMethod · 0.45
G_initializeGameFunction · 0.45
G_loadLevelFunction · 0.45
initializeTexturesMethod · 0.45
G_updateFunction · 0.45

Calls 2

ScreenRectClass · 0.85
InitSpacingsFunction · 0.85

Tested by

no test coverage detected