X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fbumps.h;h=120be96102a2fb322dcc87bd532c6f3ec5e97aba;hp=f5e8c29213c6746cbb059a89a16ff46fdae7771f;hb=cccbddbc4140cf9a06d7d95cc5c0ca36eb5d6e28;hpb=a94197e76a5dea5cb60542840809d6c20d0abbf3 diff --git a/hacks/bumps.h b/hacks/bumps.h index f5e8c292..120be961 100644 --- a/hacks/bumps.h +++ b/hacks/bumps.h @@ -1,4 +1,4 @@ -/* Bumps, Copyright (c) 1999 Shane Smit +/* Bumps, Copyright (c) 2001 Shane Smit * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -12,11 +12,12 @@ * Tab Size: 4 * * Description: - * Header file for module "Bumps.cpp" + * Header file for module "Bumps.c" * * Modification History: * [10/01/99] - Shane Smit: Creation * [10/08/99] - Shane Smit: Port to C. (Ick) + * [03/08/02] - Shane Smit: New movement code. */ @@ -31,7 +32,6 @@ /* Defines: */ /* #define VERBOSE */ -#define PI 3.141592654 #define RANDOM() ((int) (random() & 0X7FFFFFFFL)) typedef signed char int8_; @@ -49,7 +49,6 @@ char *progclass = "Bumps"; char *defaults [] = { ".background: black", ".foreground: white", - "*degrees: 360", "*color: random", "*colorcount: 64", "*delay: 50000", @@ -62,7 +61,6 @@ char *defaults [] = { }; XrmOptionDescRec options [] = { - { "-degrees", ".degrees", XrmoptionSepArg, 0 }, { "-color", ".color", XrmoptionSepArg, 0 }, { "-colorcount", ".colorcount", XrmoptionSepArg, 0 }, { "-delay", ".delay", XrmoptionSepArg, 0 }, @@ -76,20 +74,18 @@ XrmOptionDescRec options [] = { * a member of TBumps. */ typedef struct { - uint16_ nDegreeCount; - double *aSinTable; - uint8_ *aLightMap; uint16_ nDiameter, nRadius; - float nAngleX, nAngleY; /* Spotlight's movement direction. */ + float nAccelX, nAccelY; + float nAccelMax; float nVelocityX, nVelocityY; - uint16_ iWinXCenter, iWinYCenter; + float nVelocityMax; + float nXPos, nYPos; } SSpotLight; void CreateSpotLight( SSpotLight *, uint16_, uint16_ ); void CreateTables( SSpotLight * ); -void CalcLightPos( SSpotLight *, uint16_ *, uint16_ * ); -void DestroySpotLight( SSpotLight *pSpotLight ) { free( pSpotLight->aLightMap ); free( pSpotLight->aSinTable ); } +void DestroySpotLight( SSpotLight *pSpotLight ) { free( pSpotLight->aLightMap ); } /* The entire program's operation is contained within this structure. */ @@ -121,9 +117,5 @@ void SoftenBumpMap( SBumps * ); #endif /* _BUMPS_H */ -/* - * End of Module: "Bumps.h" - */ - /* vim: ts=4 */