diff options
author | Ton Roosendaal <ton@blender.org> | 2006-12-20 20:57:56 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-12-20 20:57:56 +0300 |
commit | 253432bfc7c2a1dae224a03fb3055de19743ec67 (patch) | |
tree | 2cea30606f9f29be51d5366ddf0d3747b9649b90 /source/blender/makesdna/DNA_space_types.h | |
parent | 0a0753b409221b66f5003d8c257426043ada227e (diff) |
The Big Image refactor!
Please read:
http://www.blender3d.org/cms/Imaging.834.0.html
Or in short:
- adding MultiLayer Image support
- recoded entire Image API
- better integration of movie/sequence Images
Was a whole load of work... went down for a week to do this. So, will need
a lot of testing! Will be in irc all evening.
Diffstat (limited to 'source/blender/makesdna/DNA_space_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 210ecc20119..1f5391d59b1 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -36,7 +36,8 @@ #include "DNA_listBase.h" #include "DNA_vec_types.h" -#include "DNA_oops_types.h" /* for TreeStoreElem */ +#include "DNA_oops_types.h" /* for TreeStoreElem */ +#include "DNA_image_types.h" /* ImageUser */ /* Hum ... Not really nice... but needed for spacebuts. */ #include "DNA_view2d_types.h" @@ -163,31 +164,27 @@ typedef struct SpaceFile { struct direntry *filelist; int totfile; + char title[24]; char dir[160]; char file[80]; + short type, ofs, flag, sort; short maxnamelen, collums; struct BlendHandle *libfiledata; - short retval, ipotype; - short menu, act; - - /* changed type for compiling */ - /* void (*returnfunc)(short); ? used with char* ....*/ - /** - * @attention Called in filesel.c: - * @attention returnfunc(this->retval) : short - * @attention returnfunc(name) : char* - * @attention Other uses are limited to testing against - * @attention the value. How do we resolve this? Two args? - * @attention For now, keep the char*, as it seems stable. - * @attention Be warned that strange behaviour _has_ been spotted! - */ - void (*returnfunc)(char*); - - short *menup; + unsigned short retval; /* event */ + short menu, act, ipotype; + + /* one day we'll add unions to dna */ + void (*returnfunc)(char *); + void (*returnfunc_event)(unsigned short); + void (*returnfunc_args)(char *, void *, void *); + + void *arg1, *arg2; + short *menup; /* pointer to menu result or ID browsing */ + char *pupmenu; /* optional menu in header */ } SpaceFile; typedef struct SpaceOops { @@ -228,18 +225,21 @@ typedef struct SpaceImage { View2D v2d; struct Image *image; + struct ImageUser iuser; + struct CurveMapping *cumap; short mode, menunr; short imanr, curtile; int flag; - short pad1, lock; - - float zoom, pad2; + short imtypenr, lock; + short showspare, pad2; + float zoom; - float xof, yof; /* user defined offset, image is centered */ + float xof, yof; /* user defined offset, image is centered */ + float centx, centy; /* storage for offset while render drawing */ - float centx, centy; /* storage for offset while render drawing */ - char *info_str; /* info string for render */ + char *info_str, *info_spare; /* info string for render */ + struct ImBuf *spare; } SpaceImage; typedef struct SpaceNla{ @@ -429,9 +429,11 @@ typedef struct SpaceImaSel { /* sbuts->flag */ #define SB_PRV_OSA 1 -/* these values need to be hardcoded in blender.h SpaceFile: struct dna does not recognize defines */ +/* these values need to be hardcoded in structs, dna does not recognize defines */ +/* also defined in BKE */ #define FILE_MAXDIR 160 #define FILE_MAXFILE 80 +#define FILE_MAX 240 /* filesel types */ #define FILE_UNIX 8 @@ -589,7 +591,8 @@ typedef struct SpaceImaSel { #define TIME_ALL_ANIM_WIN 4 #define TIME_ALL_BUTS_WIN 8 #define TIME_WITH_SEQ_AUDIO 16 -#define TIME_SEQ 32 +#define TIME_SEQ 32 +#define TIME_ALL_IMAGE_WIN 64 /* sseq->mainb */ #define SEQ_DRAW_SEQUENCE 0 |