Add screen->world and world->screen functions for 2D; add extended camera2D example
This commit is contained in:
parent
ce8d7042c6
commit
d880d46ccc
1 changed files with 324 additions and 22 deletions
|
|
@ -909,6 +909,9 @@ RLAPI void EndTextureMode(void); // Ends drawin
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue