projects
/
physik
/
nlsop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed cryst->amorph z direction diffusion bug
[physik/nlsop.git]
/
dfbapi.h
diff --git
a/dfbapi.h
b/dfbapi.h
index
c51bfe4
..
51786bc
100644
(file)
--- a/
dfbapi.h
+++ b/
dfbapi.h
@@
-5,7
+5,12
@@
*
*/
*
*/
+#ifndef DFBAPI_H
+#define DFBAPI_H
+
+#ifdef USE_DFB_API
#include <directfb.h>
#include <directfb.h>
+#endif
/* two dimensional lattice */
/* two dimensional lattice */
@@
-24,11
+29,15
@@
typedef struct __d2_lattice
unsigned char *status; /* status&1 -> red, else blue */
int *extra; /* store extra values */
void *v_ptr; /* void ptr, for any use */
unsigned char *status; /* status&1 -> red, else blue */
int *extra; /* store extra values */
void *v_ptr; /* void ptr, for any use */
+#ifdef USE_DFB_API
IDirectFB *dfb;
IDirectFBSurface *p_surface;
IDirectFBFont *font;
IDirectFBInputDevice *keyboard;
IDirectFBEventBuffer *k_buffer;
IDirectFB *dfb;
IDirectFBSurface *p_surface;
IDirectFBFont *font;
IDirectFBInputDevice *keyboard;
IDirectFBEventBuffer *k_buffer;
+#else
+ char *foo1,*foo2,*foo3,*foo4,*foo5;
+#endif
} d2_lattice;
typedef struct __d3_lattice
} d2_lattice;
typedef struct __d3_lattice
@@
-40,21
+49,29
@@
typedef struct __d3_lattice
int info_w,info_h;
int font_h;
unsigned char *status; /* status&1 -> red, else blue */
int info_w,info_h;
int font_h;
unsigned char *status; /* status&1 -> red, else blue */
- int *extra /* store extra values */
+ int *extra
;
/* store extra values */
void *v_ptr; /* void ptr, for any use */
void *v_ptr; /* void ptr, for any use */
+#ifdef USE_DFB_API
IDirectFB *dfb;
IDirectFBSurface *p_surface;
IDirectFBFont *font;
IDirectFBInputDevice *keyboard;
IDirectFBEventBuffer *k_buffer;
IDirectFB *dfb;
IDirectFBSurface *p_surface;
IDirectFBFont *font;
IDirectFBInputDevice *keyboard;
IDirectFBEventBuffer *k_buffer;
+#else
+ char *foo1,*foo2,*foo3,*foo4,*foo5;
+#endif
} d3_lattice;
/* function prototypes */
} d3_lattice;
/* function prototypes */
-int d2_lattice_init(int *argc,char **argv,d2_lattice *d2_l
,int x,int y
);
+int d2_lattice_init(int *argc,char **argv,d2_lattice *d2_l);
int d2_lattice_release(d2_lattice *d2_l);
int d2_lattice_draw(d2_lattice *d2_l,int x,int y,int arg_c,char **arg_v);
int d2_lattice_release(d2_lattice *d2_l);
int d2_lattice_draw(d2_lattice *d2_l,int x,int y,int arg_c,char **arg_v);
-int d3_lattice_init(int *argc,char **argv,d3_lattice *d3_l
,int x,int y,int z
);
+int d3_lattice_init(int *argc,char **argv,d3_lattice *d3_l);
int d3_lattice_release(d3_lattice *d3_l);
int d3_lattice_draw(d3_lattice *d3_l,int x,int y,int z,int arg_c,char **arg_v);
int d3_lattice_release(d3_lattice *d3_l);
int d3_lattice_draw(d3_lattice *d3_l,int x,int y,int z,int arg_c,char **arg_v);
+int d2_event_init(d2_lattice *d2_l);
+int d3_event_init(d3_lattice *d3_l);
+int scan_event(d3_lattice *d3_l,int *x,int *y,int *z,int *q,int *esc);
int dx_lattice_get_color(unsigned char *status,unsigned char *r,unsigned char *g,unsigned char *b);
int dx_lattice_get_color(unsigned char *status,unsigned char *r,unsigned char *g,unsigned char *b);
+#endif /* DFBAPI_H */