aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2017-04-22 19:04:54 +0200
committerraysan5 <raysan5@gmail.com>2017-04-22 19:04:54 +0200
commitb0f8ea27e3d7417c0f0c9795aa315dac399c97bf (patch)
tree854c517f98f4028e45aa57c4341ef80724f83fec /docs/examples
parent5620e739149ee2a8d3152f11eb444d4e982352ab (diff)
downloadraylib-b0f8ea27e3d7417c0f0c9795aa315dac399c97bf.tar.gz
raylib-b0f8ea27e3d7417c0f0c9795aa315dac399c97bf.zip
Renamed function for lib consistency
LoadSpriteFontTTF() --> LoadSpriteFontEx()
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/src/text/text_ttf_loading.c4
-rw-r--r--docs/examples/web/text/text_ttf_loading.c4
-rw-r--r--docs/examples/web/textures/textures_raw_data.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/docs/examples/src/text/text_ttf_loading.c b/docs/examples/src/text/text_ttf_loading.c
index 4e490399..02b7f95f 100644
--- a/docs/examples/src/text/text_ttf_loading.c
+++ b/docs/examples/src/text/text_ttf_loading.c
@@ -25,7 +25,7 @@ int main()
// NOTE: Textures/Fonts MUST be loaded after Window initialization (OpenGL context is required)
// TTF SpriteFont loading with custom generation parameters
- SpriteFont font = LoadSpriteFontTTF("resources/KAISG.ttf", 96, 0, 0);
+ SpriteFont font = LoadSpriteFontEx("resources/KAISG.ttf", 96, 0, 0);
// Generate mipmap levels to use trilinear filtering
// NOTE: On 2D drawing it won't be noticeable, it looks like FILTER_BILINEAR
@@ -82,7 +82,7 @@ int main()
if (count == 1) // Only support one ttf file dropped
{
UnloadSpriteFont(font);
- font = LoadSpriteFontTTF(droppedFiles[0], fontSize, 0, 0);
+ font = LoadSpriteFontEx(droppedFiles[0], fontSize, 0, 0);
ClearDroppedFiles();
}
}
diff --git a/docs/examples/web/text/text_ttf_loading.c b/docs/examples/web/text/text_ttf_loading.c
index 9dfdcac2..02097437 100644
--- a/docs/examples/web/text/text_ttf_loading.c
+++ b/docs/examples/web/text/text_ttf_loading.c
@@ -52,7 +52,7 @@ int main()
// NOTE: Textures/Fonts MUST be loaded after Window initialization (OpenGL context is required)
// TTF SpriteFont loading with custom generation parameters
- font = LoadSpriteFontTTF("resources/KAISG.ttf", 96, 0, 0);
+ font = LoadSpriteFontEx("resources/KAISG.ttf", 96, 0, 0);
// Generate mipmap levels to use trilinear filtering
// NOTE: On 2D drawing it won't be noticeable, it looks like FILTER_BILINEAR
@@ -130,7 +130,7 @@ void UpdateDrawFrame(void)
if (count == 1) // Only support one ttf file dropped
{
UnloadSpriteFont(font);
- font = LoadSpriteFontTTF(droppedFiles[0], fontSize, 0, 0);
+ font = LoadSpriteFontEx(droppedFiles[0], fontSize, 0, 0);
ClearDroppedFiles();
}
}
diff --git a/docs/examples/web/textures/textures_raw_data.c b/docs/examples/web/textures/textures_raw_data.c
index 245af2e3..f06c798b 100644
--- a/docs/examples/web/textures/textures_raw_data.c
+++ b/docs/examples/web/textures/textures_raw_data.c
@@ -111,7 +111,7 @@ void UpdateDrawFrame(void)
ClearBackground(RAYWHITE);
- DrawTexture(checked, screenWidth/2 - checked.width/2, screenHeight/2 - checked.height/2, WHITE);
+ DrawTexture(checked, screenWidth/2 - checked.width/2, screenHeight/2 - checked.height/2, Fade(WHITE, 0.5f));
DrawTexture(fudesumi, 430, -30, WHITE);
DrawText("CHECKED TEXTURE ", 84, 100, 30, BROWN);