qvolray
view src/volume.h @ 11:8990b5d2c7fe
moving to qt
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 09 Apr 2012 23:42:57 +0300 |
parents | a6765984e057 |
children | 17d9dc2edc91 |
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) const;
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_ */