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:
authorAndrea Weikert <elubie@gmx.net>2006-06-05 15:07:15 +0400
committerAndrea Weikert <elubie@gmx.net>2006-06-05 15:07:15 +0400
commite5218ce9aa713b40a5d379f8512a1e2f305f1ddb (patch)
treee023defb37b37943191d28c07bca7f1983d00d61 /source/blender/makesdna/DNA_image_types.h
parent6d98cce4a6165cd9dee6d195a83a60aa42db7332 (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.h7
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;