2 * scientific visualization api for direct framebuffer
4 * author: hackbard@hackdaworld.dyndns.org
15 /* two dimensional lattice */
21 typedef struct __d2_lattice
29 unsigned char *status; /* status&1 -> red, else blue */
30 int *extra; /* store extra values */
31 void *v_ptr; /* void ptr, for any use */
34 IDirectFBSurface *p_surface;
36 IDirectFBInputDevice *keyboard;
37 IDirectFBEventBuffer *k_buffer;
39 char *foo1,*foo2,*foo3,*foo4,*foo5;
43 typedef struct __d3_lattice
45 int max_x,max_y,max_z;
52 unsigned char *status; /* status&1 -> red, else blue */
53 int *extra; /* store extra values */
54 void *v_ptr; /* void ptr, for any use */
57 IDirectFBSurface *p_surface;
59 IDirectFBInputDevice *keyboard;
60 IDirectFBEventBuffer *k_buffer;
62 char *foo1,*foo2,*foo3,*foo4,*foo5;
66 /* function prototypes */
67 int d2_lattice_init(int *argc,char **argv,d2_lattice *d2_l);
68 int d2_lattice_release(d2_lattice *d2_l);
69 int d2_lattice_draw(d2_lattice *d2_l,int x,int y,int arg_c,char **arg_v,unsigned char mode,int max_extra);
70 int d3_lattice_init(int *argc,char **argv,d3_lattice *d3_l);
71 int d3_lattice_release(d3_lattice *d3_l);
72 int d3_lattice_draw(d3_lattice *d3_l,int x,int y,int z,int arg_c,char **arg_v,unsigned char mode,int max_extra);
73 int d2_event_init(d2_lattice *d2_l);
74 int d3_event_init(d3_lattice *d3_l);
75 int scan_event(d3_lattice *d3_l,int *x,int *y,int *z,int *q,int *esc,int *switchmode,int *bmp,int *ac_distr);
76 int dx_lattice_get_color(unsigned char *status,unsigned char *r,unsigned char *g,unsigned char *b,unsigned char mode);