Renamed GetMouseRayEx to GetViewRay
This commit is contained in:
parent
d9aba3e7be
commit
b9bd3b6abe
|
|
@ -1050,7 +1050,7 @@ RLAPI void UnloadShader(Shader shader); // Un
|
|||
|
||||
// Screen-space-related functions
|
||||
RLAPI Ray GetMouseRay(Vector2 mousePosition, Camera camera); // Get a ray trace from mouse position
|
||||
RLAPI Ray GetMouseRayEx(Vector2 mousePosition, Camera camera, float width, float height); // Get a ray trace from mouse position
|
||||
RLAPI Ray GetViewRay(Vector2 mousePosition, Camera camera, float width, float height); // Get a ray trace from mouse position in a viewport
|
||||
RLAPI Matrix GetCameraMatrix(Camera camera); // Get camera transform matrix (view matrix)
|
||||
RLAPI Matrix GetCameraMatrix2D(Camera2D camera); // Get camera 2d transform matrix
|
||||
RLAPI Vector2 GetWorldToScreen(Vector3 position, Camera camera); // Get the screen space position for a 3d world space position
|
||||
|
|
|
|||
|
|
@ -1395,11 +1395,11 @@ void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture)
|
|||
// Get a ray trace from mouse position
|
||||
Ray GetMouseRay(Vector2 mousePosition, Camera camera)
|
||||
{
|
||||
return GetMouseRayEx(mousePosition, camera, GetScreenWidth(), GetScreenHeight());
|
||||
return GetViewRay(mousePosition, camera, GetScreenWidth(), GetScreenHeight());
|
||||
}
|
||||
|
||||
// Get a ray trace from the mouse position within a specific section of the screen
|
||||
Ray GetMouseRayEx(Vector2 mousePosition, Camera camera, float width, float height)
|
||||
Ray GetViewRay(Vector2 mousePosition, Camera camera, float width, float height)
|
||||
{
|
||||
Ray ray = { 0 };
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user