MCPcopy Create free account
hub / github.com/Twinklebear/TwinklebearDev-Lessons / renderText

Function renderText

Lesson6/src/main.cpp:68–93  ·  view source on GitHub ↗

* Render the message we want to display to a texture for drawing * @param message The message we want to display * @param fontFile The font we want to use to render the text * @param color The color we want the text to be * @param fontSize The size we want the font to be * @param renderer The renderer to load the texture in * @return An SDL_Texture containing the rendered message, or nullptr

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 1

logSDLErrorFunction · 0.70

Tested by

no test coverage detected