qvolray
annotate 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 |
rev | line source |
---|---|
nuclear@8 | 1 #ifndef VOLUME_H_ |
nuclear@8 | 2 #define VOLUME_H_ |
nuclear@8 | 3 |
nuclear@11 | 4 #include <list> |
nuclear@11 | 5 #include <string> |
nuclear@8 | 6 |
nuclear@11 | 7 class Volume { |
nuclear@11 | 8 private: |
nuclear@8 | 9 int sz[3]; |
nuclear@8 | 10 float zaspect; |
nuclear@11 | 11 unsigned int tex; |
nuclear@11 | 12 |
nuclear@13 | 13 bool read_voldesc(const char *fname, std::list<std::string> *slist); |
nuclear@11 | 14 |
nuclear@11 | 15 public: |
nuclear@11 | 16 Volume(); |
nuclear@11 | 17 ~Volume(); |
nuclear@11 | 18 |
nuclear@11 | 19 bool load(const char *fname); |
nuclear@11 | 20 |
nuclear@11 | 21 unsigned int get_texture() const; |
nuclear@11 | 22 void bind(int tex_unit = 0) const; |
nuclear@8 | 23 }; |
nuclear@8 | 24 |
nuclear@8 | 25 #endif /* VOLUME_H_ */ |