aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Font/je_texture_font.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-23 13:07:57 +0800
committerchai <chaifix@163.com>2018-10-23 13:07:57 +0800
commit50be5c9746854adcdb5b45b75955b57f18f98fe5 (patch)
treeca854633b3901f6f052e757ca2a98ad0c597a508 /src/libjin/Graphics/Font/je_texture_font.cpp
parent233856869a699c0139291e4f43a61bc5a056c189 (diff)
*draw->render
Diffstat (limited to 'src/libjin/Graphics/Font/je_texture_font.cpp')
-rw-r--r--src/libjin/Graphics/Font/je_texture_font.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libjin/Graphics/Font/je_texture_font.cpp b/src/libjin/Graphics/Font/je_texture_font.cpp
index 9651c1a..30a927c 100644
--- a/src/libjin/Graphics/Font/je_texture_font.cpp
+++ b/src/libjin/Graphics/Font/je_texture_font.cpp
@@ -212,7 +212,7 @@ namespace JinEngine
return typeset(*text, lineheight, spacing);
}
- void TextureFont::print(const Page* page, int x, int y)
+ void TextureFont::render(const Page* page, int x, int y)
{
Shader* shader = Shader::getCurrentShader();
const vector<GlyphArrayDrawInfo>& glyphinfolist = page->glyphinfolist;
@@ -231,17 +231,17 @@ namespace JinEngine
}
}
- void TextureFont::print(const Content& text, int x, int y, int lineheight, int spacing)
+ void TextureFont::render(const Content& text, int x, int y, int lineheight, int spacing)
{
Page* page = typeset(text, lineheight, spacing);
- print(page, x, y);
+ render(page, x, y);
delete page;
}
- void TextureFont::print(const Text& text, int x, int y, int lineheight, int spacing)
+ void TextureFont::render(const Text& text, int x, int y, int lineheight, int spacing)
{
Page* page = typeset(text, lineheight, spacing);
- print(page, x, y);
+ render(page, x, y);
delete page;
}