thug/Code/Gfx/NxAnimCache.cpp

61 lines
2.2 KiB
C++
Raw Normal View History

2016-02-13 21:39:12 +00:00
//****************************************************************************
//* MODULE: Gfx
//* FILENAME: NxAnimCache.cpp
//* OWNER: Gary Jesdanun
//* CREATION DATE: 5/06/2002
//****************************************************************************
#include <gfx/nxanimcache.h>
#include <gel/assman/assman.h>
#include <gel/scripting/checksum.h>
#include <gel/scripting/script.h>
#include <gfx/bonedanim.h>
#include <gfx/nx.h>
namespace Nx
{
/*****************************************************************************
** Private Functions **
*****************************************************************************/
///////////////////////////////////////////////////////////////////////////////
// Stub versions of all platform specific functions are provided here:
// so engine implementors can leave certain functionality until later
// (Mick Perforce: added line)
/*****************************************************************************
** Public Functions **
*****************************************************************************/
// These functions are the platform independent part of the interface to
// the platform specific code
// parameter checking can go here....
// although we might just want to have these functions inline, or not have them at all?
/******************************************************************/
/* */
/* */
/******************************************************************/
Gfx::CBonedAnimFrameData* GetCachedAnim( uint32 animChecksum, bool assertOnFail )
{
if ( animChecksum == 0 )
{
return NULL;
}
Ass::CAssMan* ass_man = Ass::CAssMan::Instance();
return (Gfx::CBonedAnimFrameData*)ass_man->GetAsset( animChecksum, assertOnFail );
}
/******************************************************************/
/* */
/* */
/******************************************************************/
} // Nx