From 50be5c9746854adcdb5b45b75955b57f18f98fe5 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 23 Oct 2018 13:07:57 +0800 Subject: *draw->render --- src/libjin/Graphics/Font/je_ttf.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libjin/Graphics/Font/je_ttf.cpp') 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& 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) -- cgit v1.1-26-g67d0