4 * default parameters and program defines
12 #define DEFAULT_X_SEG 50
13 #define DEFAULT_Y_SEG 50
14 #define DEFAULT_Z_SEG 100
16 #define DEFAULT_SLOPE_NEL 1
17 #define DEFAULT_START_NEL 0
19 #define DEFAULT_STEPS 5000
21 /* program defines, dont touch ;) */
23 #define URAND_MAX 0xffffffff
25 typedef unsigned int u32;
26 typedef long long unsigned int u64;
34 #define printfd(fmt,args...) if(DEBUG_IT) printf(fmt,##args);
37 typedef struct __display {
38 u32 max_x,max_y,max_z; /* dimensions */
39 u32 *cell_p; /* pointer to cell data */
41 IDirectFB *dfb; /* pointer to dfb main construct */
42 IDirectFBSurface *primary_surface; /* pointer to dfb primary surface */
44 int screen_height,screen_width; /* screen dimensions */
47 #define DEFAULT_DISPLAY_X 25
48 #define DEFAULT_DISPLAY_Y 25
49 #define DEFAULT_DISPLAY_Z 50
50 #define DEFAULT_DISPLAY_REF_RATE 100
53 /* masks for u32 cell */
54 #define AMORPH 0x00000001
55 #define CRYSTAL 0x00000000
56 #define C_CONC_MASK 0xfffffffe