qvolray

view src/volume.h @ 13:17d9dc2edc91

first qt version
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 10 Apr 2012 06:11:16 +0300
parents 8990b5d2c7fe
children 3d05c261a2f4
line source
1 #ifndef VOLUME_H_
2 #define VOLUME_H_
4 #include <list>
5 #include <string>
7 class Volume {
8 private:
9 int sz[3];
10 float zaspect;
11 unsigned int tex;
13 bool read_voldesc(const char *fname, std::list<std::string> *slist);
15 public:
16 Volume();
17 ~Volume();
19 bool load(const char *fname);
21 unsigned int get_texture() const;
22 void bind(int tex_unit = 0) const;
23 };
25 #endif /* VOLUME_H_ */