MCPcopy Create free account
hub / github.com/EasyRPG/Player / Draw

Method Draw

src/text.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include <iterator>
30
31Point Text::Draw(Bitmap& dest, int x, int y, const Font& font, const Bitmap& system, int color, char32_t glyph, bool is_exfont) {
32 if (is_exfont) {
33 if (!font.IsStyleApplied()) {
34 return Font::exfont->Render(dest, x, y, system, color, glyph);
35 } else {
36 auto style = font.GetCurrentStyle();
37 auto style_guard = Font::exfont->ApplyStyle(style);
38 return Font::exfont->Render(dest, x, y, system, color, glyph);
39 }
40 } else {
41 return font.Render(dest, x, y, system, color, glyph);
42 }
43}
44
45Point Text::Draw(Bitmap& dest, int x, int y, const Font& font, Color color, char32_t glyph, bool is_exfont) {
46 if (is_exfont) {

Callers

nothing calls this directly

Calls 12

maxFunction · 0.85
IsStyleAppliedMethod · 0.80
RenderMethod · 0.80
GetCurrentStyleMethod · 0.80
ApplyStyleMethod · 0.80
dataMethod · 0.80
CanShapeMethod · 0.80
ShapeMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45
clearMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected