qvolray

view src/volray.h @ 37:450d4c50470f

- 16bit floating point textures halve gpu texture memory usage - slower transfer function change
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 01 Jan 2014 00:23:57 +0200
parents aeef3c2ae472
children
line source
1 #ifndef VOLRAY_H_
2 #define VOLRAY_H_
4 #include "volume.h"
6 bool volray_init();
8 void volray_setvolume(Volume *vol);
9 Volume *volray_getvolume();
11 enum class VolRayOpt {
12 ZCURSOR,
13 ZCLIP
14 };
16 void volray_setvalue(VolRayOpt which, float val);
17 float volray_getvalue(VolRayOpt which);
19 void volray_resize(int xsz, int ysz);
20 void volray_draw();
21 void volray_draw_slice();
22 void volray_draw_xfer();
24 void volray_mouse(int bn, int state, int x, int y);
25 void volray_motion(int x, int y);
27 int parse_args(int argc, char **argv);
29 #endif // VOLRAY_H_