diff options
| author | raysan5 <[email protected]> | 2021-06-26 21:07:00 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-06-26 21:07:00 +0200 |
| commit | 2f75657350f4377e41064c7ca2941e00e586be63 (patch) | |
| tree | 7c6113bfdd73fb69d64eafa7a5f3ce3a952be888 /examples/textures | |
| parent | 00c87953853d46ede8ac8fa8c1b2640dc941f82c (diff) | |
| download | raylib-2f75657350f4377e41064c7ca2941e00e586be63.tar.gz raylib-2f75657350f4377e41064c7ca2941e00e586be63.zip | |
WARNING: REMOVED: Some deprecated function names mapping
Some functions/values have been deprecated for long time but some mapping was kept for convenience. Some of those mappings have been removed...
Diffstat (limited to 'examples/textures')
| -rw-r--r-- | examples/textures/textures_image_drawing.c | 2 | ||||
| -rw-r--r-- | examples/textures/textures_image_text.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/textures/textures_image_drawing.c b/examples/textures/textures_image_drawing.c index ea3cb319..2707746c 100644 --- a/examples/textures/textures_image_drawing.c +++ b/examples/textures/textures_image_drawing.c @@ -48,7 +48,7 @@ int main(void) // Draw over image using custom font ImageDrawTextEx(&parrots, font, "PARROTS & CAT", (Vector2){ 300, 230 }, (float)font.baseSize, -2, WHITE); - UnloadFont(font); // Unload custom spritefont (already drawn used on image) + UnloadFont(font); // Unload custom font (already drawn used on image) Texture2D texture = LoadTextureFromImage(parrots); // Image converted to texture, uploaded to GPU memory (VRAM) UnloadImage(parrots); // Once image has been converted to texture and uploaded to VRAM, it can be unloaded from RAM diff --git a/examples/textures/textures_image_text.c b/examples/textures/textures_image_text.c index cb4f0df3..7b19cd3e 100644 --- a/examples/textures/textures_image_text.c +++ b/examples/textures/textures_image_text.c @@ -1,6 +1,6 @@ /******************************************************************************************* * -* raylib [texture] example - Image text drawing using TTF generated spritefont +* raylib [texture] example - Image text drawing using TTF generated font * * This example has been created using raylib 1.8 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) @@ -64,7 +64,7 @@ int main(void) } else DrawTexture(font.texture, screenWidth/2 - font.texture.width/2, 50, BLACK); - DrawText("PRESS SPACE to SEE USED SPRITEFONT ", 290, 420, 10, DARKGRAY); + DrawText("PRESS SPACE to SHOW FONT ATLAS USED", 290, 420, 10, DARKGRAY); EndDrawing(); //---------------------------------------------------------------------------------- @@ -74,7 +74,7 @@ int main(void) //-------------------------------------------------------------------------------------- UnloadTexture(texture); // Texture unloading - UnloadFont(font); // Unload custom spritefont + UnloadFont(font); // Unload custom font CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- |
