mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-24 11:20:27 +01:00
40 lines
1.1 KiB
C
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
|
||
|
|