-
Is there any way to get those values without needing to initializing the main monitor and taking those parameters with glfw3??? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
If I understand you I think you want ? This can be executed prior to |
Beta Was this translation helpful? Give feedback.
-
The function mlx_get_monitor_size() does not work prior to mlx_init() as far as I can tell. Case 1: get monitor size before mlx_init()
This does not work, it always fails, monitor count, width and height always equal 0.
glfwGetMonitors() fails when executed before glfwInit(). Solution for now: call glfwInit() yourself before mlx_get_monitor_size() and mlx_init(). |
Beta Was this translation helpful? Give feedback.
If I understand you I think you want ?
https://github.com/codam-coding-college/MLX42/blob/master/src/mlx_monitor.c
This can be executed prior to
mlx_init
/glfwInit