2 * scientific visualization api for direct framebuffer
4 * author: hackbard@hackdaworld.dyndns.org
13 /* two dimensional lattice */
19 typedef struct __d2_lattice
27 unsigned char *status; /* status&1 -> red, else blue */
28 int *extra; /* store extra values */
29 void *v_ptr; /* void ptr, for any use */
31 IDirectFBSurface *p_surface;
33 IDirectFBInputDevice *keyboard;
34 IDirectFBEventBuffer *k_buffer;
37 typedef struct __d3_lattice
39 int max_x,max_y,max_z;
45 unsigned char *status; /* status&1 -> red, else blue */
46 int *extra; /* store extra values */
47 void *v_ptr; /* void ptr, for any use */
49 IDirectFBSurface *p_surface;
51 IDirectFBInputDevice *keyboard;
52 IDirectFBEventBuffer *k_buffer;
55 /* function prototypes */
56 int d2_lattice_init(int *argc,char **argv,d2_lattice *d2_l,int x,int y);
57 int d2_lattice_release(d2_lattice *d2_l);
58 int d2_lattice_draw(d2_lattice *d2_l,int x,int y,int arg_c,char **arg_v);
59 int d3_lattice_init(int *argc,char **argv,d3_lattice *d3_l,int x,int y,int z);
60 int d3_lattice_release(d3_lattice *d3_l);
61 int d3_lattice_draw(d3_lattice *d3_l,int x,int y,int z,int arg_c,char **arg_v);
62 int d2_event_init(d2_lattice *d2_l);
63 int d3_event_init(d3_lattice *d3_l);
64 int scan_event(d3_lattice *d3_l,int *x,int *y,int *z,int *q,int *esc);
65 int dx_lattice_get_color(unsigned char *status,unsigned char *r,unsigned char *g,unsigned char *b);