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_A_P_RANGE 2
20 #define DEFAULT_A_P_FAKTOR 1
22 #define DEFAULT_STEPS 5000
24 /* program defines, dont touch ;) */
26 #define URAND_MAX 0xffffffff
27 #define URAND_2_MAX 0xffff
29 typedef unsigned int u32;
30 typedef long long unsigned int u64;
38 #define printfd(fmt,args...) if(DEBUG_IT) printf(fmt,##args);
41 typedef struct __display {
42 u32 max_x,max_y,max_z; /* dimensions */
43 void *cell_p; /* pointer to cell data */
45 IDirectFB *dfb; /* pointer to dfb main construct */
46 IDirectFBSurface *primary_surface; /* pointer to dfb primary surface */
47 IDirectFBFont *font; /* the font */
49 int screen_height,screen_width; /* screen dimensions */
52 #define DEFAULT_DISPLAY_REF_RATE 100
54 #define DISPLAY_X_FREE 15
55 #define DISPLAY_Y_FREE 15
57 #define DISPLAY_FONT "/usr/share/DFBSee/decker.ttf"
60 /* masks for u32 cell */
61 #define AMORPH 0x00000001
62 #define CRYSTAL 0x00000000
63 #define C_CONC_MASK 0xfffffffe