REVIEWED: GetWindowPosition() #5932
This commit is contained in:
parent
47c8e897ce
commit
d75a6589f0
1 changed files with 2 additions and 0 deletions
|
|
@ -1030,6 +1030,8 @@ const char *GetMonitorName(int monitor)
|
|||
// Get window position XY on monitor
|
||||
Vector2 GetWindowPosition(void)
|
||||
{
|
||||
glfwGetWindowPos(platform.handle, &CORE.Window.position.x, &CORE.Window.position.y);
|
||||
|
||||
return (Vector2){ (float)CORE.Window.position.x, (float)CORE.Window.position.y };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue