aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Font
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Graphics/Font')
-rw-r--r--src/libjin/Graphics/Font/je_font.h6
-rw-r--r--src/libjin/Graphics/Font/je_texture_font.cpp10
-rw-r--r--src/libjin/Graphics/Font/je_texture_font.h6
-rw-r--r--src/libjin/Graphics/Font/je_ttf.cpp10
-rw-r--r--src/libjin/Graphics/Font/je_ttf.h6
5 files changed, 19 insertions, 19 deletions
diff --git a/src/libjin/Graphics/Font/je_font.h b/src/libjin/Graphics/Font/je_font.h
index 2e9206b..42f83b6 100644
--- a/src/libjin/Graphics/Font/je_font.h
+++ b/src/libjin/Graphics/Font/je_font.h
@@ -63,7 +63,7 @@ namespace JinEngine
/// @param x X value of the position.
/// @param y Y value of the position.
///
- virtual void print(const Page* page, int x, int y) = 0;
+ virtual void render(const Page* page, int x, int y) = 0;
///
/// Render unicode codepoints to given position.
@@ -74,7 +74,7 @@ namespace JinEngine
/// @param lineheight Line height of the content.
/// @param spacing Spacing between characters.
///
- virtual void print(const Content& content, int x, int y, int lineheight, int spacing = 0) = 0;
+ virtual void render(const Content& content, int x, int y, int lineheight, int spacing = 0) = 0;
///
/// Render text to given position.
@@ -85,7 +85,7 @@ namespace JinEngine
/// @param lineheight Line height of the text.
/// @param spacing Spacing between characters.
///
- virtual void print(const Text& text, int x, int y, int lineheight, int spacing = 0) = 0;
+ virtual void render(const Text& text, int x, int y, int lineheight, int spacing = 0) = 0;
///
/// Get font size.
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;
}
diff --git a/src/libjin/Graphics/Font/je_texture_font.h b/src/libjin/Graphics/Font/je_texture_font.h
index 6276350..0cafff1 100644
--- a/src/libjin/Graphics/Font/je_texture_font.h
+++ b/src/libjin/Graphics/Font/je_texture_font.h
@@ -64,17 +64,17 @@ namespace JinEngine
///
///
///
- void print(const Page* page, int x, int y) override;
+ void render(const Page* page, int x, int y) override;
///
///
///
- void print(const Content& text, int x, int y, int linehgiht, int spacing = 0) override;
+ void render(const Content& text, int x, int y, int linehgiht, int spacing = 0) override;
///
///
///
- void print(const Text& text, int x, int y, int lineheight, int spacing = 0)override;
+ void render(const Text& text, int x, int y, int lineheight, int spacing = 0)override;
private:
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)
diff --git a/src/libjin/Graphics/Font/je_ttf.h b/src/libjin/Graphics/Font/je_ttf.h
index e3d63b2..42e7e62 100644
--- a/src/libjin/Graphics/Font/je_ttf.h
+++ b/src/libjin/Graphics/Font/je_ttf.h
@@ -131,17 +131,17 @@ namespace JinEngine
///
///
///
- void print(const Text& text, int x, int y, int lineheight, int spacing = 0) override;
+ void render(const Text& text, int x, int y, int lineheight, int spacing = 0) override;
///
///
///
- void print(const Content& text, int x, int y, int lineheight, int spacing = 0) override;
+ void render(const Content& text, int x, int y, int lineheight, int spacing = 0) override;
///
///
///
- void print(const Page* page, int x, int y) override;
+ void render(const Page* page, int x, int y) override;
///
///