diff options
| author | Ray <[email protected]> | 2021-03-12 18:05:09 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-12 18:05:09 +0100 |
| commit | 421c4e4cd85310bef3a8f79f89d23e3a1eac9668 (patch) | |
| tree | a49167a3f2c2ae7558c9a3a94696bc187ffbc824 /examples/web/textures | |
| parent | cc62fcccc630fdc4badcad8381d5bb43eb71fa1f (diff) | |
| download | raylib.com-421c4e4cd85310bef3a8f79f89d23e3a1eac9668.tar.gz raylib.com-421c4e4cd85310bef3a8f79f89d23e3a1eac9668.zip | |
Renamed FormatText() -> TextFormat()
Diffstat (limited to 'examples/web/textures')
| -rw-r--r-- | examples/web/textures/textures_bunnymark.c | 4 | ||||
| -rw-r--r-- | examples/web/textures/textures_image_processing.c | 4 | ||||
| -rw-r--r-- | examples/web/textures/textures_rectangle.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/web/textures/textures_bunnymark.c b/examples/web/textures/textures_bunnymark.c index 7c3d23d..74e8f93 100644 --- a/examples/web/textures/textures_bunnymark.c +++ b/examples/web/textures/textures_bunnymark.c @@ -138,8 +138,8 @@ void UpdateDrawFrame(void) } DrawRectangle(0, 0, screenWidth, 40, BLACK); - DrawText(FormatText("bunnies: %i", bunniesCount), 120, 10, 20, GREEN); - DrawText(FormatText("batched draw calls: %i", 1 + bunniesCount/MAX_BATCH_ELEMENTS), 320, 10, 20, MAROON); + DrawText(TextFormat("bunnies: %i", bunniesCount), 120, 10, 20, GREEN); + DrawText(TextFormat("batched draw calls: %i", 1 + bunniesCount/MAX_BATCH_ELEMENTS), 320, 10, 20, MAROON); DrawFPS(10, 10); diff --git a/examples/web/textures/textures_image_processing.c b/examples/web/textures/textures_image_processing.c index 7e77987..5f7f330 100644 --- a/examples/web/textures/textures_image_processing.c +++ b/examples/web/textures/textures_image_processing.c @@ -143,9 +143,9 @@ void UpdateDrawFrame(void) default: break; } - Color *pixels = GetImageData(image); // Get pixel data from image (RGBA 32bit) + Color *pixels = LoadImageColors(image); // Get pixel data from image (RGBA 32bit) UpdateTexture(texture, pixels); // Update texture with new image data - free(pixels); // Unload pixels data from RAM + UnloadImageColors(pixels); // Unload pixels data from RAM textureReload = false; } diff --git a/examples/web/textures/textures_rectangle.c b/examples/web/textures/textures_rectangle.c index cb2b7d5..6f14c5f 100644 --- a/examples/web/textures/textures_rectangle.c +++ b/examples/web/textures/textures_rectangle.c @@ -115,7 +115,7 @@ void UpdateDrawFrame(void) DrawRectangleLines(15 + frameRec.x, 40 + frameRec.y, frameRec.width, frameRec.height, RED); DrawText("FRAME SPEED: ", 165, 210, 10, DARKGRAY); - DrawText(FormatText("%02i FPS", framesSpeed), 575, 210, 10, DARKGRAY); + DrawText(TextFormat("%02i FPS", framesSpeed), 575, 210, 10, DARKGRAY); DrawText("PRESS RIGHT/LEFT KEYS to CHANGE SPEED!", 290, 240, 10, DARKGRAY); for (int i = 0; i < MAX_FRAME_SPEED; i++) |
