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.

56 lines
1.4 KiB

  1. #include "stdafx.h"
  2. #include "Motion.h"
  3. #include "Transitions.h"
  4. #include "DXFormTrx.h"
  5. #include "DXForm3DRMTrx.h"
  6. //**************************************************************************************************
  7. //
  8. // class Transition
  9. //
  10. //**************************************************************************************************
  11. //------------------------------------------------------------------------------
  12. Transition::Transition()
  13. {
  14. m_fPlay = FALSE;
  15. m_fBackward = FALSE;
  16. }
  17. //------------------------------------------------------------------------------
  18. Transition::~Transition()
  19. {
  20. }
  21. //**************************************************************************************************
  22. //
  23. // Public API Functions
  24. //
  25. //**************************************************************************************************
  26. //------------------------------------------------------------------------------
  27. Transition *
  28. GdCreateTransition(const GTX_TRXDESC * ptx)
  29. {
  30. // Check parameters
  31. if (ptx == NULL) {
  32. return FALSE;
  33. }
  34. //
  35. // Create a new transition
  36. //
  37. switch (ptx->tt)
  38. {
  39. case GTX_TYPE_DXFORM2D:
  40. return DXFormTrx::Build((const GTX_DXTX2D_TRXDESC *) ptx);
  41. case GTX_TYPE_DXFORM3DRM:
  42. return DXForm3DRMTrx::Build((const GTX_DXTX3DRM_TRXDESC *) ptx);
  43. }
  44. return NULL;
  45. }