mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-19 09:48:15 +00:00
ADDED: GetWindowPosition()
This commit is contained in:
11
src/core.c
11
src/core.c
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user