4 * default parameters and program defines
12 #define NOT_SPECIFIED 0
14 #define DEFAULT_X_SEG 50
15 #define DEFAULT_Y_SEG 50
16 #define DEFAULT_Z_SEG 100
18 #define DEFAULT_SLOPE_NEL 1
19 #define DEFAULT_START_NEL 0
21 #define DEFAULT_A_P_RANGE 3
22 #define DEFAULT_A_P_FAKTOR 0.2
23 #define DEFAULT_A_P_P0 0.2
25 #define DEFAULT_C_DIST_START_CONC 0
26 #define DEFAULT_C_DIST_SLOPE 1
27 #define DEFAULT_C_C0 500000
29 #define DEFAULT_STEPS 5000
31 #define RAND_BUF_SIZE 64*1048576 /* 64 MB */
33 /* program defines, dont touch ;) */
35 #define URAND_MAX 0xffffffff
36 #define URAND_2BYTE_MAX 0xffff
38 #define MAX_CHARS_RANDOM_FILE 64
40 typedef unsigned int u32;
41 typedef long long unsigned int u64;
43 typedef struct __cell {
44 unsigned char status; /* amorph or cryst status */
45 u32 conc; /* c concentration */
54 #define printfd(fmt,args...) if(DEBUG_IT) printf(fmt,##args);
57 typedef struct __display {
58 int step; /* display step */
59 u32 max_x,max_y,max_z; /* dimensions */
60 cell *cell_p; /* pointer to cell data */
62 IDirectFB *dfb; /* pointer to dfb main construct */
63 IDirectFBSurface *primary_surface; /* pointer to dfb primary surface */
64 IDirectFBFont *font; /* the font */
65 IDirectFBInputDevice *keyboard; /* for keyboard input */
66 IDirectFBEventBuffer *keyboard_buffer; /* event buffer */
68 int screen_height,screen_width; /* screen dimensions */
71 #define DEFAULT_DISPLAY_REF_RATE 100
73 #define DISPLAY_X_FREE 15
74 #define DISPLAY_Y_FREE 15
76 // defined by Makefile now
77 // #define DISPLAY_FONT "./decker.ttf"
81 /* masks for u32 cell */
86 #define C_CONC_MASK 0xffffffff