23#ifndef TINSEL_OBJECT_H
24#define TINSEL_OBJECT_H
27#include "common/frac.h"
28#include "common/rect.h"
139void KillAllObjects();
141void FreeObjectList();
152bool isValidObject(
OBJECT *obj);
183void AnimateObjectFlags(
int32 frac_t
Definition: frac.h:52
@ DMA_ABS
position of object is absolute
Definition: object.h:48
@ DMA_WNZ
write non-zero data
Definition: object.h:39
@ DMA_FLIPH
flip object horizontally
Definition: object.h:44
@ DMA_3D
3D objects for TinselV3
Definition: object.h:52
@ DMA_FLIPV
flip object vertically
Definition: object.h:45
@ DMA_CLIP
clip object
Definition: object.h:46
@ DMA_CHANGED
object has changed in some way since the last frame
Definition: object.h:49
@ DMA_HARDFLAGS
Definition: object.h:55
@ DMA_CONST
write constant on both zero & non-zero data
Definition: object.h:42
@ DMA_TRANS
translucent rectangle object
Definition: object.h:47
@ NUM_OBJECTS
Definition: object.h:36
@ DMA_RLWA
TenselV2+ run-length write all.
Definition: object.h:41
@ DMA_WA
write all data
Definition: object.h:43
@ DMA_CNZ
TinselV1 write constant on non-zero data.
Definition: object.h:40
@ DMA_USERDEF
user defined flags start here
Definition: object.h:50
uint32 SCNHANDLE
Definition: dw.h:31
uint32 FRAME
Definition: object.h:71
T right
Definition: rect.h:171
T left
Definition: rect.h:170
short anioffY
image y animation offset
Definition: object.h:63
unsigned short imgHeight
image height
Definition: object.h:61
short anioffX
image x animation offset
Definition: object.h:62
short isRLE
if image is using run-length encoding (Tinsel V3)
Definition: object.h:66
SCNHANDLE hImgBits
image bitmap handle
Definition: object.h:64
SCNHANDLE hImgPal
image palette handle (Tinsel V1/V2)
Definition: object.h:65
short colorFlags
type of blending (Tinsel V3)
Definition: object.h:67
short imgWidth
image width
Definition: object.h:60
int constant
TinselV3, type of color blending.
Definition: object.h:88
int flags
object flags - see above for list
Definition: object.h:84
frac_t yPos
y position of object
Definition: object.h:81
Common::Rect rcPrev
previous screen coordinates of object bounding rectangle
Definition: object.h:83
PALQ * pPal
objects palette Q position
Definition: object.h:85
SCNHANDLE hImg
handle to object image definition
Definition: object.h:92
frac_t xPos
x position of object
Definition: object.h:80
SCNHANDLE hBits
image bitmap handle
Definition: object.h:91
int width
width of object
Definition: object.h:89
int oid
object identifier
Definition: object.h:95
int zPos
z position of object
Definition: object.h:82
SCNHANDLE hMirror
objects previous animation frame
Definition: object.h:94
OBJECT * pNext
pointer to next object in list
Definition: object.h:75
OBJECT * pSlave
pointer to slave object (multi-part objects)
Definition: object.h:76
int height
height of object
Definition: object.h:90
SCNHANDLE hShape
objects current animation frame
Definition: object.h:93
short isRLE
TinselVersion == 3, if image is using run-length encoding.
Definition: object.h:86