lwanimsav.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * LWSDK Header File
  3. * Copyright 1999, NewTek, Inc.
  4. *
  5. * LWANIMSAV.H -- LightWave Animation Saver
  6. */
  7. #ifndef LWSDK_ANIMSAV_H
  8. #define LWSDK_ANIMSAV_H
  9. #include <lwhandler.h>
  10. #include <lwrender.h>
  11. #define LWANIMSAVER_HCLASS "AnimSaverHandler"
  12. #define LWANIMSAVER_ICLASS "AnimSaverInterface"
  13. #define LWANIMSAVER_VERSION 4
  14. typedef struct st_LWAnimSaverHandler {
  15. LWInstanceFuncs *inst;
  16. LWItemFuncs *item;
  17. int type;
  18. LWError (*open) (LWInstance, int w, int h,
  19. const char *filename);
  20. void (*close) (LWInstance);
  21. LWError (*begin) (LWInstance);
  22. LWError (*write) (LWInstance, const void *R, const void *G,
  23. const void *B, const void *alpha);
  24. } LWAnimSaverHandler;
  25. /*
  26. * The saver selects what kind of data it wants with the 'type' field.
  27. * The value of that field selects the type of the data that will be
  28. * passed to the 'write' function.
  29. */
  30. #define LWAST_UBYTE 0
  31. #define LWAST_FLOAT 1
  32. #endif