ADDED: GetWindowPosition()

This commit is contained in:
Ray 2019-09-10 12:43:44 +02:00
parent ae2452d280
commit 0a2177b4bc
2 changed files with 12 additions and 0 deletions

View file

@ -1064,6 +1064,17 @@ int GetMonitorPhysicalHeight(int monitor)
return 0;
}
// Get window position XY on monitor
Vector2 GetWindowPosition(void)
{
int x = 0;
int y = 0;
#if defined(PLATFORM_DESKTOP)
glfwGetWindowPos(window, &x, &y);
#endif
return (Vector2){ (float)x, (float)y };
}
// Get the human-readable, UTF-8 encoded name of the primary monitor
const char *GetMonitorName(int monitor)
{