diff options
| author | Ray <[email protected]> | 2024-04-21 12:29:09 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-04-21 12:29:09 +0200 |
| commit | 3caa424ad4656b8c8ef8885a234a1a60ade80159 (patch) | |
| tree | 6e12f45064133e36d141ea105004ab5e9342cd98 /src/rcore.c | |
| parent | cf47fbb20bbaacb986fcfe05f0c0e6c6d89c5690 (diff) | |
| download | raylib-3caa424ad4656b8c8ef8885a234a1a60ade80159.tar.gz raylib-3caa424ad4656b8c8ef8885a234a1a60ade80159.zip | |
Review formatting
Diffstat (limited to 'src/rcore.c')
| -rw-r--r-- | src/rcore.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/rcore.c b/src/rcore.c index d2e4a35e..a68067fe 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1420,7 +1420,7 @@ void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) Ray GetScreenToWorldRay(Vector2 position, Camera camera) { Ray ray = GetScreenToWorldRayEx(position, camera, GetScreenWidth(), GetScreenHeight()); - + return ray; } @@ -1463,8 +1463,8 @@ Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height Vector3 farPoint = Vector3Unproject((Vector3){ deviceCoords.x, deviceCoords.y, 1.0f }, matProj, matView); // Unproject the mouse cursor in the near plane - // We need this as the source position because orthographic projects, - // compared to perspective doesn't have a convergence point, + // We need this as the source position because orthographic projects, + // compared to perspective doesn't have a convergence point, // meaning that the "eye" of the camera is more like a plane than a point Vector3 cameraPlanePointerPos = Vector3Unproject((Vector3){ deviceCoords.x, deviceCoords.y, -1.0f }, matProj, matView); @@ -1484,7 +1484,7 @@ Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height Matrix GetCameraMatrix(Camera camera) { Matrix mat = MatrixLookAt(camera.position, camera.target, camera.up); - + return mat; } @@ -1951,9 +1951,9 @@ const char *GetFileExtension(const char *fileName) static const char *strprbrk(const char *s, const char *charset) { const char *latestMatch = NULL; - + for (; s = strpbrk(s, charset), s != NULL; latestMatch = s++) { } - + return latestMatch; } @@ -1961,9 +1961,9 @@ static const char *strprbrk(const char *s, const char *charset) const char *GetFileName(const char *filePath) { const char *fileName = NULL; - + if (filePath != NULL) fileName = strprbrk(filePath, "\\/"); - + if (fileName != NULL) return filePath; return fileName + 1; @@ -2244,9 +2244,9 @@ bool IsPathFile(const char *path) bool IsFileDropped(void) { bool result = false; - + if (CORE.Window.dropFileCount > 0) result = true; - + return result; } |
