volmetrics
diff src/volume.h @ 30:e548d95e0667
fixed lighting, added parameter for volume rotation
author | Eleni Maria Stea <elene.mst@gmail.com> |
---|---|
date | Thu, 01 May 2014 15:28:51 +0300 |
parents | add30e2d5253 |
children | eb87d4a12bd3 |
line diff
1.1 --- a/src/volume.h Sun Apr 27 21:07:10 2014 +0300 1.2 +++ b/src/volume.h Thu May 01 15:28:51 2014 +0300 1.3 @@ -13,6 +13,7 @@ 1.4 int width; 1.5 int height; 1.6 float zaspect; 1.7 + float x_rot; 1.8 1.9 unsigned int vol_tex; 1.10 mutable bool vol_tex_valid; 1.11 @@ -38,6 +39,8 @@ 1.12 1.13 unsigned int get_texture() const; 1.14 1.15 + float get_volume_rotation() const; 1.16 + 1.17 void create_mesh(Mesh *mesh, float tmin, float tmax, int xres, int yres, int zres); 1.18 1.19 void draw() const;