diff options
author | chai <chaifix@163.com> | 2018-10-23 13:07:57 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-23 13:07:57 +0800 |
commit | 50be5c9746854adcdb5b45b75955b57f18f98fe5 (patch) | |
tree | ca854633b3901f6f052e757ca2a98ad0c597a508 /src/libjin/Graphics/Font/je_ttf.cpp | |
parent | 233856869a699c0139291e4f43a61bc5a056c189 (diff) |
*draw->render
Diffstat (limited to 'src/libjin/Graphics/Font/je_ttf.cpp')
-rw-r--r-- | src/libjin/Graphics/Font/je_ttf.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libjin/Graphics/Font/je_ttf.cpp b/src/libjin/Graphics/Font/je_ttf.cpp index a11efb0..72e5da9 100644 --- a/src/libjin/Graphics/Font/je_ttf.cpp +++ b/src/libjin/Graphics/Font/je_ttf.cpp @@ -224,10 +224,10 @@ namespace JinEngine return t; } - void TTF::print(const Content& t, int x, int y, int lineheight, int spacing) + void TTF::render(const Content& t, int x, int y, int lineheight, int spacing) { Page* page = typeset(t, lineheight, spacing); - print(page, x, y); + render(page, x, y); delete page; } @@ -299,7 +299,7 @@ namespace JinEngine return typeset(*text, lineheight, spacing); } - void TTF::print(const Page* page, int x, int y) + void TTF::render(const Page* page, int x, int y) { Shader* shader = Shader::getCurrentShader(); const vector<GlyphArrayDrawInfo>& glyphinfolist = page->glyphinfolist; @@ -318,9 +318,9 @@ namespace JinEngine } } - void TTF::print(const Text& text, int x, int y, int lineheight, int spacing /* = 0 */) + void TTF::render(const Text& text, int x, int y, int lineheight, int spacing /* = 0 */) { - print(*text, x, y, lineheight, spacing); + render(*text, x, y, lineheight, spacing); } int TTF::getCharWidth(int c) |