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 void *cell_p; /* pointer to cell data */
41 IDirectFB *dfb; /* pointer to dfb main construct */
42 IDirectFBSurface *primary_surface; /* pointer to dfb primary surface */
43 IDirectFBFont *font; /* the font */
45 int screen_height,screen_width; /* screen dimensions */
48 #define DEFAULT_DISPLAY_REF_RATE 100
50 #define DISPLAY_X_FREE 15
51 #define DISPLAY_Y_FREE 15
53 #define DISPLAY_FONT "/usr/share/DFBSee/decker.ttf"
56 /* masks for u32 cell */
57 #define AMORPH 0x00000001
58 #define CRYSTAL 0x00000000
59 #define C_CONC_MASK 0xfffffffe