-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.GetWindowHandle
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Local storage for the window handle returned by glfwGetX11Window This is needed as X11 handles are integers and may not fit inside a pointer depending on platform Storing the handle locally and returning a pointer in GetWindowHandle allows the code to work regardless of pointer width Get native window handle
None.
| Condition | Return Value |
|---|---|
| (always) | map |
raylib.InitWindow 800, 600, "Window Handle Demo"
handle = raylib.GetWindowHandle
print "Native window handle: " + handle
raylib.CloseWindow