From 3b7be851515bf8ec4d9585352a5df8ba5aa85ac0 Mon Sep 17 00:00:00 2001 From: aiafrasinei Date: Thu, 7 Mar 2024 13:28:11 +0200 Subject: Screen space related functions consistency (#3830) * Screen/world-space related functions rename * Update raylib_api.* by CI --------- Co-authored-by: github-actions[bot] --- src/rcore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rcore.c') diff --git a/src/rcore.c b/src/rcore.c index 024f0d12..5e45a49a 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1407,13 +1407,13 @@ void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) //---------------------------------------------------------------------------------- // Get a ray trace from mouse position -Ray GetMouseRay(Vector2 mousePosition, Camera camera) +Ray GetScreenToWorldRay(Vector2 mousePosition, Camera camera) { - return GetViewRay(mousePosition, camera, (float)GetScreenWidth(), (float)GetScreenHeight()); + return GetScreenToWorldRayEx(mousePosition, camera, (float)GetScreenWidth(), (float)GetScreenHeight()); } // Get a ray trace from the mouse position within a specific section of the screen -Ray GetViewRay(Vector2 mousePosition, Camera camera, float width, float height) +Ray GetScreenToWorldRayEx(Vector2 mousePosition, Camera camera, float width, float height) { Ray ray = { 0 }; -- cgit v1.2.3