diff options
Diffstat (limited to 'examples/web/core')
| -rw-r--r-- | examples/web/core/core_input_gamepad.c | 12 | ||||
| -rw-r--r-- | examples/web/core/core_input_mouse_wheel.c | 2 | ||||
| -rw-r--r-- | examples/web/core/core_random_values.c | 2 | ||||
| -rw-r--r-- | examples/web/core/core_vr_simulator.c | 2 | ||||
| -rw-r--r-- | examples/web/core/core_window_flags.c | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/examples/web/core/core_input_gamepad.c b/examples/web/core/core_input_gamepad.c index 3485391..ca90ba1 100644 --- a/examples/web/core/core_input_gamepad.c +++ b/examples/web/core/core_input_gamepad.c @@ -98,7 +98,7 @@ void UpdateDrawFrame(void) if (IsGamepadAvailable(GAMEPAD_PLAYER1)) { - DrawText(FormatText("GP1: %s", GetGamepadName(GAMEPAD_PLAYER1)), 10, 10, 10, BLACK); + DrawText(TextFormat("GP1: %s", GetGamepadName(GAMEPAD_PLAYER1)), 10, 10, 10, BLACK); if (IsGamepadName(GAMEPAD_PLAYER1, XBOX360_NAME_ID)) { @@ -145,8 +145,8 @@ void UpdateDrawFrame(void) DrawRectangle(170, 30, 15, (((1.0f + GetGamepadAxisMovement(GAMEPAD_PLAYER1, GAMEPAD_AXIS_LEFT_TRIGGER))/2.0f)*70), RED); DrawRectangle(604, 30, 15, (((1.0f + GetGamepadAxisMovement(GAMEPAD_PLAYER1, GAMEPAD_AXIS_RIGHT_TRIGGER))/2.0f)*70), RED); - //DrawText(FormatText("Xbox axis LT: %02.02f", GetGamepadAxisMovement(GAMEPAD_PLAYER1, GAMEPAD_AXIS_LEFT_TRIGGER)), 10, 40, 10, BLACK); - //DrawText(FormatText("Xbox axis RT: %02.02f", GetGamepadAxisMovement(GAMEPAD_PLAYER1, GAMEPAD_AXIS_RIGHT_TRIGGER)), 10, 60, 10, BLACK); + //DrawText(TextFormat("Xbox axis LT: %02.02f", GetGamepadAxisMovement(GAMEPAD_PLAYER1, GAMEPAD_AXIS_LEFT_TRIGGER)), 10, 40, 10, BLACK); + //DrawText(TextFormat("Xbox axis RT: %02.02f", GetGamepadAxisMovement(GAMEPAD_PLAYER1, GAMEPAD_AXIS_RIGHT_TRIGGER)), 10, 60, 10, BLACK); } else if (IsGamepadName(GAMEPAD_PLAYER1, PS3_NAME_ID)) { @@ -200,14 +200,14 @@ void UpdateDrawFrame(void) // TODO: Draw generic gamepad } - DrawText(FormatText("DETECTED AXIS [%i]:", GetGamepadAxisCount(GAMEPAD_PLAYER1)), 10, 50, 10, MAROON); + DrawText(TextFormat("DETECTED AXIS [%i]:", GetGamepadAxisCount(GAMEPAD_PLAYER1)), 10, 50, 10, MAROON); for (int i = 0; i < GetGamepadAxisCount(GAMEPAD_PLAYER1); i++) { - DrawText(FormatText("AXIS %i: %.02f", i, GetGamepadAxisMovement(GAMEPAD_PLAYER1, i)), 20, 70 + 20*i, 10, DARKGRAY); + DrawText(TextFormat("AXIS %i: %.02f", i, GetGamepadAxisMovement(GAMEPAD_PLAYER1, i)), 20, 70 + 20*i, 10, DARKGRAY); } - if (GetGamepadButtonPressed() != -1) DrawText(FormatText("DETECTED BUTTON: %i", GetGamepadButtonPressed()), 10, 430, 10, RED); + if (GetGamepadButtonPressed() != -1) DrawText(TextFormat("DETECTED BUTTON: %i", GetGamepadButtonPressed()), 10, 430, 10, RED); else DrawText("DETECTED BUTTON: NONE", 10, 430, 10, GRAY); } else diff --git a/examples/web/core/core_input_mouse_wheel.c b/examples/web/core/core_input_mouse_wheel.c index e1d06b5..c842c25 100644 --- a/examples/web/core/core_input_mouse_wheel.c +++ b/examples/web/core/core_input_mouse_wheel.c @@ -82,7 +82,7 @@ void UpdateDrawFrame(void) DrawRectangle(screenWidth/2 - 40, boxPositionY, 80, 80, MAROON); DrawText("Use mouse wheel to move the cube up and down!", 10, 10, 20, GRAY); - DrawText(FormatText("Box position Y: %03i", boxPositionY), 10, 40, 20, LIGHTGRAY); + DrawText(TextFormat("Box position Y: %03i", boxPositionY), 10, 40, 20, LIGHTGRAY); EndDrawing(); //---------------------------------------------------------------------------------- diff --git a/examples/web/core/core_random_values.c b/examples/web/core/core_random_values.c index 9d7e70b..b997540 100644 --- a/examples/web/core/core_random_values.c +++ b/examples/web/core/core_random_values.c @@ -86,7 +86,7 @@ void UpdateDrawFrame(void) DrawText("Every 2 seconds a new random value is generated:", 130, 100, 20, MAROON); - DrawText(FormatText("%i", randValue), 360, 180, 80, LIGHTGRAY); + DrawText(TextFormat("%i", randValue), 360, 180, 80, LIGHTGRAY); EndDrawing(); //---------------------------------------------------------------------------------- diff --git a/examples/web/core/core_vr_simulator.c b/examples/web/core/core_vr_simulator.c index efd6622..0e9507e 100644 --- a/examples/web/core/core_vr_simulator.c +++ b/examples/web/core/core_vr_simulator.c @@ -75,7 +75,7 @@ int main(void) hmd.chromaAbCorrection[3] = 0.0f; // HMD chromatic aberration correction parameter 3 // Distortion shader (uses device lens distortion and chroma) - distortion = LoadShader(0, FormatText("resources/distortion%i.fs", GLSL_VERSION)); + distortion = LoadShader(0, TextFormat("resources/distortion%i.fs", GLSL_VERSION)); SetVrConfiguration(hmd, distortion); // Set Vr device parameters for stereo rendering // Define the camera to look into our 3d world diff --git a/examples/web/core/core_window_flags.c b/examples/web/core/core_window_flags.c index f3448e9..55eacb1 100644 --- a/examples/web/core/core_window_flags.c +++ b/examples/web/core/core_window_flags.c @@ -145,7 +145,7 @@ int main(void) DrawFPS(10, 10); - DrawText(FormatText("Screen Size: [%i, %i]", GetScreenWidth(), GetScreenHeight()), 10, 40, 10, GREEN); + DrawText(TextFormat("Screen Size: [%i, %i]", GetScreenWidth(), GetScreenHeight()), 10, 40, 10, GREEN); // Draw window state info DrawText("Following flags can be set after window creation:", 10, 60, 10, GRAY); |
