Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2009-03-11 08:32:11 +0300
committerMatt Ebb <matt@mke3.net>2009-03-11 08:32:11 +0300
commitce637a00469bf5caf620d4ed27a54e658469ee54 (patch)
tree88cf5995016e4637d358d41c26080f3ea0af4ba2 /source/blender/render/intern/include/voxeldata.h
parent8fa180a9b19649067edce3b973be4a27ea5b8daa (diff)
* Patch by Raul F Hernandez
This adds a header to the voxel data texture's data file format, to auto-fill the resolution settings upon loading a file. I don't have a data file of the right format to test with, so I'll trust it works and wait for confirmation! It also adds a 'still frame' setting, to pause the voxel data sequence on a specified frame, throughout the course of the rendered animation.
Diffstat (limited to 'source/blender/render/intern/include/voxeldata.h')
-rw-r--r--source/blender/render/intern/include/voxeldata.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/render/intern/include/voxeldata.h b/source/blender/render/intern/include/voxeldata.h
index 504d5523db6..190a5a5a1c4 100644
--- a/source/blender/render/intern/include/voxeldata.h
+++ b/source/blender/render/intern/include/voxeldata.h
@@ -36,7 +36,13 @@
struct Render;
struct TexResult;
-int _I(int x,int y,int z,int n);
+typedef struct VoxelDataHeader
+{
+int resolX, resolY, resolZ;
+int frames;
+} VoxelDataHeader;
+
+inline int _I(int x, int y, int z, int *n);
void make_voxeldata(struct Render *re);
void free_voxeldata(struct Render *re);
int voxeldatatex(struct Tex *tex, float *texvec, struct TexResult *texres);