- updated iff.h, for compatibility with blender itself

this fixes zbuffer reading for plugins again
This commit is contained in:
2003-05-14 13:25:47 +00:00
parent adacfb1b15
commit 71fa539b93

View File

@@ -114,26 +114,28 @@
#define AN_INIT an_stringdec = stringdec; an_stringenc = stringenc; #define AN_INIT an_stringdec = stringdec; an_stringenc = stringenc;
typedef struct ImBuf{ typedef struct ImBuf{
short x,y; /* breedte in pixels, hoogte in scanlines */ short x,y; /* width in pixels, height in scanlines */
short skipx; /* breedte in ints om bij volgende scanline te komen */ short skipx; /* width in ints to get to the next scanline */
uchar depth; /* actieve aantal bits/bitplanes */ unsigned char depth; /* active amount of bits/bitplanes */
uchar cbits; /* aantal active bits in cmap */ unsigned char cbits; /* amount of active bits in cmap */
ushort mincol; unsigned short mincol;
ushort maxcol; unsigned short maxcol;
int type; /* 0=abgr, 1=bitplanes */ int type; /* 0=abgr, 1=bitplanes */
int ftype; int ftype;
uint *cmap; /* int array van kleuren */ unsigned int *cmap; /* int array van kleuren */
uint *rect; /* databuffer */ unsigned int *rect; /* databuffer */
uint **planes; /* bitplanes */ unsigned int **planes; /* bitplanes */
uchar *chardata; /* voor cdi-compressie */
int flags; int flags;
int mall; /* wat is er intern gemalloced en mag weer vrijgegeven worden */ int mall; /* what is malloced internal, and can be freed */
short xorig, yorig; short xorig, yorig;
char name[127]; char name[1023];
char namenull; char namenull;
int userflags; int userflags;
int *zbuf; int *zbuf;
void *userdata; void *userdata;
unsigned char *encodedbuffer;
unsigned int encodedsize;
unsigned int encodedbuffersize;
} ImBuf; } ImBuf;
extern struct ImBuf *allocImBuf(short,short,uchar,uint,uchar); extern struct ImBuf *allocImBuf(short,short,uchar,uint,uchar);