Requires:
-
Wayland libraries, ensure
pkg-config --libs wayland-clientprints something like:-lwayland-client, and that/usr/share/includecontainswayland-client.h -
A Wayland compositor. Weston is the most reliable. It can by run in an X window (via
westoncommand), or use a TTY and runwestonorweston-launch. Gnome on wayland for GNOME >= 3.14 can be used. -
Both
wl_shellandxdg_shell(v5) are supported. I have yet to update it tozxdg_shell_v6. -
A C compiler that supports gnu99.
-
A copy of
xdg-shell.xml. I have included a copy from thewayland-protocolsgit.
make
Ensure you have a running wayland compositor.
($WAYLAND_DISPLAY and $XDG_RUNTIME_DIR are set,
and there is a unix socket at $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY)
Then run ./simple.
If successful you should have semitransparent window with a rendering of the mandelbrot set.
This can be very CPU intense. You can also modify the code to use metaballs demo instead of the mandelbrot. But this will require per frame rendering.
It currenlty will ignore more than 1 screen. Which shouldn't be too much of a problem. (We only use the screen info to set the maximum window size)
- Code layout. There is horrible mess everywhere.
- Some sort of commentary of what is going on.
- Allowing more intuitive switching to meta-balls example.
(Currenlty remove the
#define BROTfrombuffer.c)