[screensavers] / screenhack /
drwxr-xr-x   ..
-rw-r--r-- 1517 README.md
-rw-r--r-- 1338 aligned_malloc.c
-rw-r--r-- 919 aligned_malloc.h
-rw-r--r-- 6199 alpha.c
-rw-r--r-- 979 alpha.h
-rw-r--r-- 20132 colors.c
-rw-r--r-- 5921 colors.h
-rw-r--r-- 20582 erase.c
-rw-r--r-- 871 erase.h
-rw-r--r-- 28208 fade.c
-rw-r--r-- 915 fade.h
-rw-r--r-- 7383 font-retry.c
-rw-r--r-- 942 font-retry.h
-rw-r--r-- 8510 fps.c
-rw-r--r-- 1224 fps.h
-rw-r--r-- 1059 fpsI.h
-rw-r--r-- 27586 grabscreen.c
-rw-r--r-- 4796 grabscreen.h
-rw-r--r-- 2189 hsv.c
-rw-r--r-- 998 hsv.h
-rw-r--r-- 7387 minixpm.c
-rw-r--r-- 1187 minixpm.h
-rw-r--r-- 5329 overlay.c
-rw-r--r-- 1173 pow2.c
-rw-r--r-- 709 pow2.h
-rw-r--r-- 22841 queue.h
-rw-r--r-- 7766 resources.c
-rw-r--r-- 1815 resources.h
-rw-r--r-- 30755 screenhack.c
-rw-r--r-- 2151 screenhack.h
-rw-r--r-- 5084 screenhackI.h
-rw-r--r-- 9555 spline.c
-rw-r--r-- 1880 spline.h
-rw-r--r-- 18618 textclient.c
-rw-r--r-- 1352 textclient.h
-rw-r--r-- 29921 thread_util.c
-rw-r--r-- 17091 thread_util.h
-rw-r--r-- 1715 usleep.c
-rw-r--r-- 813 usleep.h
-rw-r--r-- 33240 utf8wc.c
-rw-r--r-- 1926 utf8wc.h
-rw-r--r-- 825 utils.h
-rw-r--r-- 110 version.h
-rw-r--r-- 16402 visual.c
-rw-r--r-- 1722 visual.h
-rw-r--r-- 6234 vroot.h
-rw-r--r-- 1963 xdbe.c
-rw-r--r-- 1032 xdbe.h
-rw-r--r-- 9073 xft.c
-rw-r--r-- 4624 xft.h
-rw-r--r-- 19177 ximage-loader.c
-rw-r--r-- 1747 ximage-loader.h
-rw-r--r-- 6231 xmu.c
-rw-r--r-- 361 xmu.h
-rw-r--r-- 9753 xshm.c
-rw-r--r-- 2110 xshm.h
-rw-r--r-- 4861 yarandom.c
-rw-r--r-- 4762 yarandom.h

Overview

The files in this directory comprise the screenhack API/library which is part of xscreensaver. They are collected here in order to facilitate building the hacks contained in this repository without requiring an xscreensaver source tree and build system.

Status

All files were extracted from the xscreensaver-5.45.tar.gz source tarball and remain unmodified.

Since this directory only contains the files related to building X11 hacks utilizing the screenhack API, if you need the xlockmore API or OpenGL related files, either build your hack inside the xscreensaver source tree or copy the relevant files into this directory; the various makefiles are configured to automatically detect and compile them.

Instructions

For an example of use, see the top-level directory reference/ in this repository. It contains the greynetic hack, already configured to build against this screenhack library, as well as README.hacking, a guide to writing hacks against the screenhack library.

Although all the hacks in this repo contain #defines hardcoded for FreeBSD, since all the screenhack files are unmodified, they all contain the various preprocessor trickery for building on other platforms. If you’re having trouble figuring out the correct set of #defines for building on your system, try extracting the xscreensaver source, running ./configure, and examining the #defines contained in the generated config.h.