MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / Text

Method Text

include/Text.hpp:50–62  ·  view source on GitHub ↗

* Initializes a new Text object. * * @param text Text to initialize. * @param fontSize The size of the text. * @param color The color of the font. * @param font Font to initialize. * @param spacing The spacing of the text. */

Source from the content-addressed store, hash-verified

48 * @param spacing The spacing of the text.
49 */
50 Text(
51 const std::string& text = "",
52 float fontSize = 10,
53 const ::Color& color = WHITE,
54 const ::Font& font = ::GetFontDefault(),
55 float spacing = 0)
56 : text(text)
57 , fontSize(fontSize)
58 , color(color)
59 , font(font)
60 , spacing(spacing) {
61 // Nothing.
62 }
63
64 /**
65 * Initializes a new Text object with a custom font.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected