diff options
| author | raysan5 <[email protected]> | 2020-08-16 11:28:15 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-08-16 11:28:15 +0200 |
| commit | c32ae480afd196d88acdfdb52d5261a61e0deb08 (patch) | |
| tree | f34f662f64424cbade1678c07934b9c12455d68d /examples/models | |
| parent | 26f6a64a39671487f5d1eeeffe7fce6538669051 (diff) | |
| download | raylib-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/models')
| -rw-r--r-- | examples/models/models_mesh_picking.c | 10 | ||||
| -rw-r--r-- | examples/models/models_yaw_pitch_roll.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/models/models_mesh_picking.c b/examples/models/models_mesh_picking.c index f600aae8..81becbf8 100644 --- a/examples/models/models_mesh_picking.c +++ b/examples/models/models_mesh_picking.c @@ -160,25 +160,25 @@ int main(void) EndMode3D(); // Draw some debug GUI text - DrawText(FormatText("Hit Object: %s", hitObjectName), 10, 50, 10, BLACK); + DrawText(TextFormat("Hit Object: %s", hitObjectName), 10, 50, 10, BLACK); if (nearestHit.hit) { int ypos = 70; - DrawText(FormatText("Distance: %3.2f", nearestHit.distance), 10, ypos, 10, BLACK); + DrawText(TextFormat("Distance: %3.2f", nearestHit.distance), 10, ypos, 10, BLACK); - DrawText(FormatText("Hit Pos: %3.2f %3.2f %3.2f", + DrawText(TextFormat("Hit Pos: %3.2f %3.2f %3.2f", nearestHit.position.x, nearestHit.position.y, nearestHit.position.z), 10, ypos + 15, 10, BLACK); - DrawText(FormatText("Hit Norm: %3.2f %3.2f %3.2f", + DrawText(TextFormat("Hit Norm: %3.2f %3.2f %3.2f", nearestHit.normal.x, nearestHit.normal.y, nearestHit.normal.z), 10, ypos + 30, 10, BLACK); - if (hitTriangle) DrawText(FormatText("Barycenter: %3.2f %3.2f %3.2f", bary.x, bary.y, bary.z), 10, ypos + 45, 10, BLACK); + if (hitTriangle) DrawText(TextFormat("Barycenter: %3.2f %3.2f %3.2f", bary.x, bary.y, bary.z), 10, ypos + 45, 10, BLACK); } DrawText("Use Mouse to Move Camera", 10, 430, 10, GRAY); diff --git a/examples/models/models_yaw_pitch_roll.c b/examples/models/models_yaw_pitch_roll.c index 65273811..77f80063 100644 --- a/examples/models/models_yaw_pitch_roll.c +++ b/examples/models/models_yaw_pitch_roll.c @@ -195,6 +195,6 @@ void DrawAngleGauge(Texture2D angleGauge, int x, int y, float angle, char title[ DrawTexturePro(angleGauge, srcRec, dstRec, origin, angle, color); - DrawText(FormatText("%5.1f", angle), x - MeasureText(FormatText("%5.1f", angle), textSize) / 2, y + 10, textSize, DARKGRAY); + DrawText(TextFormat("%5.1f", angle), x - MeasureText(TextFormat("%5.1f", angle), textSize) / 2, y + 10, textSize, DARKGRAY); DrawText(title, x - MeasureText(title, textSize) / 2, y + 60, textSize, DARKGRAY); } |
