77 auto pTree = TNode::Tree();
79 pTree->Remove(
this );
85 pTree->InsertAtRoot(
this );
90 pTree->Insert( a_pParent,
this );
112 return Recurse( a_pCallback, a_pResource,
TFALSE, a_pUserData );
121 if (
TNULL != a_pResource )
127 pNext = pRes->
Next();
129 if ( pNext == a_pResource || pNext == pRes || !a_bFlag )
132 if ( !a_pCallback( pRes, a_pUserData ) )
140 }
while ( pNext !=
TNULL );
153 m_pRenderer = pRenderer;
Rendering system interface for the Toshi engine.
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
#define TDEFINE_CLASS(...)
void DestroyResource(TResource *resource)
virtual void DestroyResource()
static constexpr size_t MAXNAMELEN
virtual void Invalidate()
void SetRenderer(TRenderInterface *pRenderer)
void SetParent(TResource *a_pParent)
TBOOL RecurseSimple(t_RecurseCb a_pCallback, TResource *a_pResource, void *a_pUserData)
virtual TBOOL TryValidate()
static TBOOL Recurse(t_RecurseCb a_pCallback, TResource *a_pResource, TBOOL a_bFlag, void *a_pUserData)
TRenderInterface * GetRenderer() const
TBOOL(*)(TResource *a_pResource, void *a_pUserData) t_RecurseCb
virtual TBOOL TryInvalidate()
void SetName(const TCHAR *name)
static void IntToString(TINT value, TCHAR *dst, TINT unused, TINT radix)
static TSIZE String8Length(const TCHAR *str)
static TCHAR * String8Copy(TCHAR *dst, const TCHAR *src, TSIZE size=-1)