Rendering a triangle using only linux platform libraries: egl, wayland, and opengl, using the zig programming language.
Go to file
Gwen 393a3d74c7
Linking issue on desktop
Trying this out on my desktop, and I can't seem to link to EGL.  I
recall facing this issue before, but I don't think I wrote down my
findings so sadly I am in the dark.

I checked using `dpkg -L` against the mesa libraries to see if libEGL.so
was installed and it seems like it is.  I think the problem is that
it has a version number appended to the end of the filename. I don't
know if zig will accept it unless I symlink it to the name without the
versions?

Maybe there is a better way around this.
2023-10-04 18:36:38 -04:00
deps Initialize OpenGL context via EGL 2023-09-27 22:25:58 -04:00
src License under BSD Clause 0 2023-09-30 23:49:43 -04:00
.gitignore Init hello triangle project 2023-09-24 23:29:37 -04:00
.gitmodules Add submodule for zig-wayland bindings 2023-09-24 23:33:16 -04:00
README.md Linking issue on desktop 2023-10-04 18:36:38 -04:00
build.zig Remove generated code for wl_shm 2023-09-29 16:49:24 -04:00

README.md

Zig & Wayland hello triangle

Create a triangle with opengl using zig and wayland, using OpenGL, EGL, and Wayland directly.

Troubleshooting

If failed to link with EGL on ubuntu, check to see if libEGL.so is installed at one of the directories specified by the zig search paths.

Ubuntu/Debian

dpkg -L libegl1-mesa libegl1