X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=dfbapi.h;h=51786bcff31a11dec37758421fd51ee49ddcc893;hp=985d98300bced74f789671b1707c7d18b570b099;hb=f271c1142da782420ef76f1f85750949094e4269;hpb=c71815b4b5dc67546a9ca407c256d18a4abb3aff diff --git a/dfbapi.h b/dfbapi.h index 985d983..51786bc 100644 --- a/dfbapi.h +++ b/dfbapi.h @@ -8,7 +8,9 @@ #ifndef DFBAPI_H #define DFBAPI_H +#ifdef USE_DFB_API #include +#endif /* two dimensional lattice */ @@ -27,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 */ +#ifdef USE_DFB_API 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 @@ -45,18 +51,22 @@ typedef struct __d3_lattice 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; +#else + char *foo1,*foo2,*foo3,*foo4,*foo5; +#endif } 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 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 d2_event_init(d2_lattice *d2_l);