diff options
Diffstat (limited to 'examples/web/models')
| -rw-r--r-- | examples/web/models/models_first_person_maze.c | 4 | ||||
| -rw-r--r-- | examples/web/models/models_mesh_picking.c | 10 | ||||
| -rw-r--r-- | examples/web/models/models_yaw_pitch_roll.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/examples/web/models/models_first_person_maze.c b/examples/web/models/models_first_person_maze.c index 3f7f5b2..9aae811 100644 --- a/examples/web/models/models_first_person_maze.c +++ b/examples/web/models/models_first_person_maze.c @@ -63,7 +63,7 @@ int main(void) model.materials[0].maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture // Get map image data to be used for collision detection - mapPixels = GetImageData(imMap); + mapPixels = LoadImageColors(imMap); UnloadImage(imMap); // Unload image from RAM playerPosition = camera.position; // Set player position @@ -85,7 +85,7 @@ int main(void) // De-Initialization //-------------------------------------------------------------------------------------- - free(mapPixels); // Unload color array + UnoadImageColors(mapPixels); // Unload color array UnloadTexture(cubicmap); // Unload cubicmap texture UnloadTexture(texture); // Unload map texture diff --git a/examples/web/models/models_mesh_picking.c b/examples/web/models/models_mesh_picking.c index 7d1c19f..edcbae7 100644 --- a/examples/web/models/models_mesh_picking.c +++ b/examples/web/models/models_mesh_picking.c @@ -210,25 +210,25 @@ void UpdateDrawFrame(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/web/models/models_yaw_pitch_roll.c b/examples/web/models/models_yaw_pitch_roll.c index cd54171..bdc983f 100644 --- a/examples/web/models/models_yaw_pitch_roll.c +++ b/examples/web/models/models_yaw_pitch_roll.c @@ -226,6 +226,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); }
\ No newline at end of file |
