summaryrefslogtreecommitdiffhomepage
path: root/examples/textures/textures_image_text.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-04-11 11:26:16 +0200
committerraysan5 <[email protected]>2020-04-11 11:26:16 +0200
commita7311af8c329d60c14ade3012a0dfc2f2c2bb3a9 (patch)
tree19991ba6f77e9846a633f3ecde5e8c2baea81c7a /examples/textures/textures_image_text.c
parentcc816345bf24c8da911e080589b5653a52b8404e (diff)
downloadraylib-a7311af8c329d60c14ade3012a0dfc2f2c2bb3a9.tar.gz
raylib-a7311af8c329d60c14ade3012a0dfc2f2c2bb3a9.zip
Corrected examples after API change: ImageDrawText*()
Diffstat (limited to 'examples/textures/textures_image_text.c')
-rw-r--r--examples/textures/textures_image_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/textures/textures_image_text.c b/examples/textures/textures_image_text.c
index c8dfe458..aeccba68 100644
--- a/examples/textures/textures_image_text.c
+++ b/examples/textures/textures_image_text.c
@@ -26,7 +26,7 @@ int main(void)
Font font = LoadFontEx("resources/KAISG.ttf", 64, 0, 0);
// Draw over image using custom font
- ImageDrawTextEx(&parrots, (Vector2){ 20.0f, 20.0f }, font, "[Parrots font drawing]", (float)font.baseSize, 0.0f, RED);
+ ImageDrawTextEx(&parrots, font, "[Parrots font drawing]", (Vector2){ 20.0f, 20.0f }, (float)font.baseSize, 0.0f, RED);
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