*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
-XrmOptionDescRec options [] = {
- { "-degrees", ".degrees", XrmoptionSepArg, 0 },
+static XrmOptionDescRec bumps_options [] = {
{ "-color", ".color", XrmoptionSepArg, 0 },
{ "-colorcount", ".colorcount", XrmoptionSepArg, 0 },
{ "-color", ".color", XrmoptionSepArg, 0 },
{ "-colorcount", ".colorcount", XrmoptionSepArg, 0 },
{ "-delay", ".delay", XrmoptionSepArg, 0 },
{ "-soften", ".soften", XrmoptionSepArg, 0 },
{ "-invert", ".invert", XrmoptionNoArg, "TRUE" },
{ "-delay", ".delay", XrmoptionSepArg, 0 },
{ "-soften", ".soften", XrmoptionSepArg, 0 },
{ "-invert", ".invert", XrmoptionNoArg, "TRUE" },
+#ifdef HAVE_XSHM_EXTENSION
+ { "-shm", ".useSHM", XrmoptionNoArg, "True" },
+ { "-no-shm", ".useSHM", XrmoptionNoArg, "False" },
+#endif /* HAVE_XSHM_EXTENSION */
+
- uint16_ nDiameter, nRadius;
- float nAngleX, nAngleY; /* Spotlight's movement direction. */
+ uint16_ nFalloffDiameter, nFalloffRadius;
+ uint16_ nLightDiameter, nLightRadius;
+ float nAccelX, nAccelY;
+ float nAccelMax;
/* The entire program's operation is contained within this structure. */
typedef struct
{
/* XWindows specific variables. */
/* The entire program's operation is contained within this structure. */
typedef struct
{
/* XWindows specific variables. */
uint16_ iWinWidth, iWinHeight;
uint16_ *aBumpMap; /* The actual bump map. */
uint16_ iWinWidth, iWinHeight;
uint16_ *aBumpMap; /* The actual bump map. */
-void SetPalette( SBumps *, XWindowAttributes * );
-void InitBumpMap( SBumps *, XWindowAttributes * );
-void SoftenBumpMap( SBumps * );
+ async_load_state *img_loader;
+} SBumps;