diff options
| author | arvyy <[email protected]> | 2019-08-27 14:05:28 +0300 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-08-27 13:05:28 +0200 |
| commit | 97101d1003b182af354530c1447a1ee67af47e8c (patch) | |
| tree | 4063abe087ac9e89b2f7502495c0a91a44b2de59 /src/raylib.h | |
| parent | 37bb8e9554d49030f888092b9615aff08b07438f (diff) | |
| download | raylib-97101d1003b182af354530c1447a1ee67af47e8c.tar.gz raylib-97101d1003b182af354530c1447a1ee67af47e8c.zip | |
Add screen->world and world->screen functions for 2D; add extended camera2D example (#947)
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 2e664fba..4dcf78ac 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -911,6 +911,9 @@ RLAPI void EndScissorMode(void); // End scissor RLAPI Ray GetMouseRay(Vector2 mousePosition, Camera camera); // Returns a ray trace from mouse position RLAPI Vector2 GetWorldToScreen(Vector3 position, Camera camera); // Returns the screen space position for a 3d world space position RLAPI Matrix GetCameraMatrix(Camera camera); // Returns camera transform matrix (view matrix) +RLAPI Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera); +RLAPI Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); +RLAPI Matrix GetCamera2DMatrix(Camera2D camera); // Timing-related functions RLAPI void SetTargetFPS(int fps); // Set target FPS (maximum) |
