diff options
author | Andrea Weikert <elubie@gmx.net> | 2006-06-05 15:07:15 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2006-06-05 15:07:15 +0400 |
commit | e5218ce9aa713b40a5d379f8512a1e2f305f1ddb (patch) | |
tree | e023defb37b37943191d28c07bca7f1983d00d61 /source/blender/makesdna/DNA_image_types.h | |
parent | 6d98cce4a6165cd9dee6d195a83a60aa42db7332 (diff) |
- added saving of the image previews to the .blend file to prevent having to load the full images for the image previews
- new struct PreviewImage in DNA_image_types can in the future be moved to struct ID for storing previews for all types
Diffstat (limited to 'source/blender/makesdna/DNA_image_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_image_types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_image_types.h b/source/blender/makesdna/DNA_image_types.h index 52373a8d1ce..da8787d05ab 100644 --- a/source/blender/makesdna/DNA_image_types.h +++ b/source/blender/makesdna/DNA_image_types.h @@ -40,6 +40,12 @@ struct PackedFile; struct anim; struct ImBuf; +typedef struct PreviewImage { + unsigned int w; + unsigned int h; + unsigned int * rect; +} PreviewImage; + typedef struct Image { ID id; @@ -60,6 +66,7 @@ typedef struct Image { unsigned int *repbind; /* for repeat of parts of images */ struct PackedFile * packedfile; + struct PreviewImage * preview; float lastupdate; int lastused; |