Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

  1. #if !defined(MOTION__Transitions_h__INCLUDED)
  2. #define MOTION__Transitions_h__INCLUDED
  3. class DxSurface;
  4. class TrxBuffer;
  5. /***************************************************************************\
  6. *
  7. * class Transition
  8. *
  9. * Transition defines a base class that is used for transitions.
  10. *
  11. \***************************************************************************/
  12. class Transition : public BaseObject
  13. {
  14. // Construction
  15. protected:
  16. Transition();
  17. virtual ~Transition();
  18. // BaseObject Interface
  19. public:
  20. virtual HandleType GetHandleType() const { return htTransition; }
  21. virtual UINT GetHandleMask() const { return 0; }
  22. // Transition Interface
  23. public:
  24. virtual BOOL Play(const GTX_PLAY * pgx) PURE;
  25. virtual BOOL GetInterface(IUnknown ** ppUnk) PURE;
  26. virtual BOOL Begin(const GTX_PLAY * pgx) PURE;
  27. virtual BOOL Print(float fProgress) PURE;
  28. virtual BOOL End(const GTX_PLAY * pgx) PURE;
  29. // Data
  30. protected:
  31. BOOL m_fPlay:1; // Transition is playing
  32. BOOL m_fBackward:1; // Playing backward
  33. };
  34. Transition* GdCreateTransition(const GTX_TRXDESC * ptx);
  35. #include "Transitions.inl"
  36. #endif // MOTION__Transitions_h__INCLUDED