Sizing and position
Added a few sizing utils to "Rectangle" Added "GetScreenCenter" to "Raylib.Utils"
This commit is contained in:
parent
e2bbeee1b2
commit
ef5519b8f7
2 changed files with 47 additions and 0 deletions
|
|
@ -1561,4 +1561,12 @@ public static unsafe partial class Raylib
|
|||
UnloadFileText(data);
|
||||
return text;
|
||||
}
|
||||
|
||||
public static Vector2 GetScreenCenter()
|
||||
{
|
||||
Vector2 center = new Vector2();
|
||||
center.X = GetScreenWidth() / 2.0f;
|
||||
center.Y = GetScreenHeight() / 2.0f;
|
||||
return center;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue