began propability calc of amorph<->cryst
[physik/morpheus.git] / defines.h
1 /*
2  * morpheus - defines.h
3  *
4  * default parameters and program defines
5  *
6  */
7
8 #ifdef USE_DFB_API
9 #include <directfb.h>
10 #endif
11
12 #define DEFAULT_X_SEG 50
13 #define DEFAULT_Y_SEG 50
14 #define DEFAULT_Z_SEG 100
15
16 #define DEFAULT_SLOPE_NEL 1
17 #define DEFAULT_START_NEL 0
18
19 #define DEFAULT_A_P_RANGE 2
20 #define DEFAULT_A_P_FAKTOR 1
21
22 #define DEFAULT_STEPS 5000
23
24 /* program defines, dont touch ;) */
25
26 #define URAND_MAX 0xffffffff
27 #define URAND_2_MAX 0xffff
28
29 typedef unsigned int u32;
30 typedef long long unsigned int u64;
31
32 #ifdef DEBUG
33  #define DEBUG_IT 1
34 #else 
35  #define DEBUG_IT 0
36 #endif
37
38 #define printfd(fmt,args...) if(DEBUG_IT) printf(fmt,##args);
39
40 /* display stuff */
41 typedef struct __display {
42  u32 max_x,max_y,max_z; /* dimensions */
43  void *cell_p; /* pointer to cell data */
44 #ifdef USE_DFB_API
45  IDirectFB *dfb; /* pointer to dfb main construct */
46  IDirectFBSurface *primary_surface; /* pointer to dfb primary surface */
47  IDirectFBFont *font; /* the font */
48 #endif
49  int screen_height,screen_width; /* screen dimensions */
50 } display;
51
52 #define DEFAULT_DISPLAY_REF_RATE 100
53
54 #define DISPLAY_X_FREE 15
55 #define DISPLAY_Y_FREE 15
56
57 #define DISPLAY_FONT "/usr/share/DFBSee/decker.ttf"
58 #define MAX_TXT 20
59  
60 /* masks for u32 cell */
61 #define AMORPH 0x00000001
62 #define CRYSTAL 0x00000000
63 #define C_CONC_MASK 0xfffffffe
64