Requires:
-
Wayland libraries, ensure
pkg-config --libs wayland-client
prints something like:-lwayland-client
, and that/usr/share/include
containswayland-client.h
-
A Wayland compositor. Weston is the most reliable. It can by run in an X window (via
weston
command), or use a TTY and runweston
orweston-launch
. Gnome on wayland for GNOME >= 3.14 can be used. -
Both
wl_shell
andxdg_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-protocols
git.
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 BROT
frombuffer.c
)