/* bg.h - Don Yang (uguu.org) 05/19/03 */ #ifndef BG_H__ #define BG_H__ #define GRID_SIZE 32 #define GRID_XSIZE (GRID_SIZE * 2) #define GRID_ZSIZE GRID_SIZE #define CELL_SIZE 2.0 #define CELL_EMPTY ((unsigned char)0) #define CELL_ORIG ((unsigned char)2) #define CELL_COVERED ((unsigned char)1) #define RAINDROP_COUNT 512 #define CELL_BITS_SIZE 0x0003 #define CELL_BITS_TYPE 0x03fc #define CELL_BITS_SCALE 0x0400 #define CELL_BITS_SHEAR 0x0800 #define CELL_BITS_SCALE_PHASE 0x1000 #define CELL_BITS_SHEAR_PHASE 0x2000 void DrawBG(int width, int height, int left, int right, int verse); void InitBG(void); void UninitBG(void); #endif