Windows2003-3790/windows/advcore/duser/engine/motion/transitions.cpp

57 lines
1.4 KiB
C++
Raw Permalink Normal View History

2001-01-01 00:00:00 +01:00
#include "stdafx.h"
#include "Motion.h"
#include "Transitions.h"
#include "DXFormTrx.h"
#include "DXForm3DRMTrx.h"
//**************************************************************************************************
//
// class Transition
//
//**************************************************************************************************
//------------------------------------------------------------------------------
Transition::Transition()
{
m_fPlay = FALSE;
m_fBackward = FALSE;
}
//------------------------------------------------------------------------------
Transition::~Transition()
{
}
//**************************************************************************************************
//
// Public API Functions
//
//**************************************************************************************************
//------------------------------------------------------------------------------
Transition *
GdCreateTransition(const GTX_TRXDESC * ptx)
{
// Check parameters
if (ptx == NULL) {
return FALSE;
}
//
// Create a new transition
//
switch (ptx->tt)
{
case GTX_TYPE_DXFORM2D:
return DXFormTrx::Build((const GTX_DXTX2D_TRXDESC *) ptx);
case GTX_TYPE_DXFORM3DRM:
return DXForm3DRMTrx::Build((const GTX_DXTX3DRM_TRXDESC *) ptx);
}
return NULL;
}