Serious-Engine/Sources/LWSkaExporter/SDK/lwanimsav.h
2016-03-11 15:57:17 +02:00

40 lines
1.1 KiB
C

/*
* LWSDK Header File
* Copyright 1999, NewTek, Inc.
*
* LWANIMSAV.H -- LightWave Animation Saver
*/
#ifndef LWSDK_ANIMSAV_H
#define LWSDK_ANIMSAV_H
#include <lwhandler.h>
#include <lwrender.h>
#define LWANIMSAVER_HCLASS "AnimSaverHandler"
#define LWANIMSAVER_ICLASS "AnimSaverInterface"
#define LWANIMSAVER_VERSION 4
typedef struct st_LWAnimSaverHandler {
LWInstanceFuncs *inst;
LWItemFuncs *item;
int type;
LWError (*open) (LWInstance, int w, int h,
const char *filename);
void (*close) (LWInstance);
LWError (*begin) (LWInstance);
LWError (*write) (LWInstance, const void *R, const void *G,
const void *B, const void *alpha);
} LWAnimSaverHandler;
/*
* The saver selects what kind of data it wants with the 'type' field.
* The value of that field selects the type of the data that will be
* passed to the 'write' function.
*/
#define LWAST_UBYTE 0
#define LWAST_FLOAT 1
#endif