OpenBarnyard
 
Loading...
Searching...
No Matches
AKeyframeLibStreamJob.cpp
Go to the documentation of this file.
1#include "pch.h"
3
5
6//-----------------------------------------------------------------------------
7// Enables memory debugging.
8// Note: Should be the last include!
9//-----------------------------------------------------------------------------
10#include <Core/TMemoryDebugOn.h>
11
13
15 : TFileStreamJob( TNULL )
16{
17 m_pLibrary = TNULL;
18 m_szName[ 0 ] = '\0';
19}
20
22{
23 m_pLibrary = TNULL;
25 m_szName[ 0 ] = '\0';
26 m_pLibrary = pLibrary;
27}
28
29void AKeyframeLibStreamJob::Init( const TCHAR* a_szFileName )
30{
32 m_szName,
33 a_szFileName,
34 TMath::Min( TStringManager::String8Length( a_szFileName ), sizeof( m_szName ) )
35 );
36}
Rendering system interface for the Toshi engine.
#define TOSHI_NAMESPACE_USING
Definition Defines.h:46
char TCHAR
Definition Typedefs.h:20
#define TNULL
Definition Typedefs.h:23
TFORCEINLINE const T & Min(const T &a, const T &b)
TKeyframeLibrary * LoadLibrary(const TCHAR *a_szFilePath)
TKeyframeLibraryManager & GetKeyframeLibraryManager()
static TFORCEINLINE TRenderInterface * GetSingleton()
Definition TSingleton.h:49
static TSIZE String8Length(const TCHAR *str)
static TCHAR * String8Copy(TCHAR *dst, const TCHAR *src, TSIZE size=-1)
void Init(const TCHAR *a_szFileName)
virtual void Process() override