mirror of
https://github.com/thug1src/thug.git
synced 2025-01-21 21:33:46 +00:00
61 lines
2.2 KiB
C++
61 lines
2.2 KiB
C++
|
//****************************************************************************
|
||
|
//* 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
|