vfxshape.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //---------------------------------------------------------------------------
  2. //
  3. // vfxshape.h - This file contains the header for the old shape format
  4. //
  5. //---------------------------------------------------------------------------//
  6. // Copyright (C) Microsoft Corporation. All rights reserved. //
  7. //===========================================================================//
  8. #ifndef VFXSHAPE_H
  9. #define VFXSHAPE_H
  10. //---------------------------------------------------------------------------
  11. // Include files
  12. #ifndef MCLIB_H
  13. #include "mclib.h"
  14. #endif
  15. #ifndef DAPRTYPE_H
  16. #include "daprtype.h"
  17. #endif
  18. //---------------------------------------------------------------------------------
  19. class Shape
  20. {
  21. public:
  22. MemoryPtr frameList; //This is binary image of VFX file
  23. MemoryPtr stupidHeader;
  24. unsigned long lastTurnUsed;
  25. Shape *next;
  26. AppearanceTypePtr owner;
  27. public:
  28. void init (void)
  29. {
  30. frameList = stupidHeader = NULL;
  31. lastTurnUsed = 0;
  32. next = NULL;
  33. owner = NULL;
  34. }
  35. Shape (void)
  36. {
  37. init();
  38. }
  39. long init (MemoryPtr fileBlock, AppearanceTypePtr, long shapeSize);
  40. void destroy (void);
  41. ~Shape (void)
  42. {
  43. destroy();
  44. }
  45. };
  46. typedef Shape *ShapePtr;
  47. //---------------------------------------------------------------------------------
  48. #endif