jgame on master [?] via ❄️ impure
❯ cat game.janet
(use jaylib)
(init-window 100 100 "Test Game")
(set-target-fps 60)
(hide-cursor)
(while (not (window-should-close))
(begin-drawing)
(clear-background [0 0 0])
(let [[x y] (get-mouse-position)]
(draw-circle-gradient x y 31.4 :lime :red)
(draw-poly [500 200] 5 40 0 :magenta)
(draw-line-bezier
[(- x 100) y]
[(+ x 100) (+ y 50)]
4 :pink)
(draw-line-ex
[x (- y 10)]
[x (+ y 10)]
4 :sky-blue)
(draw-line-strip
[[x 0] [x 100] [50 y] [10 180]]
:ray-white))
(end-drawing))
(close-window)
jgame on master [?] via ❄️ impure
❯ janet game.janet
INFO: Initializing raylib 3.0
WARNING: GLFW: Error: 65542 Description: GLX: Failed to load GLX
WARNING: GLFW: Failed to initialize Window
INFO: TIMER: Target time per frame: 16.667 milliseconds
janet: raylib/src/external/glfw/src/input.c:501: glfwSetInputMode: Assertion `window != NULL' failed.
Aborted (core dumped)
jgame on master [?] via ❄️ impure
❯
I am on nixos version 20.09 and am getting this issue. From what ive looked up online it seems to be from a bad version of glx in relation to the system one. All the results seem to be about minecraft on windows :rofl:
Minecraft works on my system tho :\
I am on nixos version 20.09 and am getting this issue. From what ive looked up online it seems to be from a bad version of glx in relation to the system one. All the results seem to be about minecraft on windows :rofl: Minecraft works on my system tho :\