summaryrefslogtreecommitdiffhomepage
path: root/examples/text/text_font_sdf.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-08-16 11:28:15 +0200
committerraysan5 <[email protected]>2020-08-16 11:28:15 +0200
commitc32ae480afd196d88acdfdb52d5261a61e0deb08 (patch)
treef34f662f64424cbade1678c07934b9c12455d68d /examples/text/text_font_sdf.c
parent26f6a64a39671487f5d1eeeffe7fce6538669051 (diff)
downloadraylib-c32ae480afd196d88acdfdb52d5261a61e0deb08.tar.gz
raylib-c32ae480afd196d88acdfdb52d5261a61e0deb08.zip
RENAMED: FormatText() -> TextFormat()
This function was renamed for consistency in raylib 3.0, just unified all examples to use TextFormat() instead of FormatText()
Diffstat (limited to 'examples/text/text_font_sdf.c')
-rw-r--r--examples/text/text_font_sdf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/text/text_font_sdf.c b/examples/text/text_font_sdf.c
index 2cbe5150..2be4a068 100644
--- a/examples/text/text_font_sdf.c
+++ b/examples/text/text_font_sdf.c
@@ -55,7 +55,7 @@ int main(void)
UnloadImage(atlas);
// Load SDF required shader (we use default vertex shader)
- Shader shader = LoadShader(0, FormatText("resources/shaders/glsl%i/sdf.fs", GLSL_VERSION));
+ Shader shader = LoadShader(0, TextFormat("resources/shaders/glsl%i/sdf.fs", GLSL_VERSION));
SetTextureFilter(fontSDF.texture, FILTER_BILINEAR); // Required for SDF font
Vector2 fontPosition = { 40, screenHeight/2 - 50 };
@@ -110,7 +110,7 @@ int main(void)
else DrawText("default font", 315, 40, 30, GRAY);
DrawText("FONT SIZE: 16.0", GetScreenWidth() - 240, 20, 20, DARKGRAY);
- DrawText(FormatText("RENDER SIZE: %02.02f", fontSize), GetScreenWidth() - 240, 50, 20, DARKGRAY);
+ DrawText(TextFormat("RENDER SIZE: %02.02f", fontSize), GetScreenWidth() - 240, 50, 20, DARKGRAY);
DrawText("Use MOUSE WHEEL to SCALE TEXT!", GetScreenWidth() - 240, 90, 10, DARKGRAY);
DrawText("HOLD SPACE to USE SDF FONT VERSION!", 340, GetScreenHeight() - 30, 20, MAROON);