47 : m_pLastTexture(
TNULL )
51 constexpr int WhiteTextureWidth = 8;
52 constexpr int WhiteTextureHeight = 8;
53 constexpr int WhiteTextureSize = WhiteTextureWidth * WhiteTextureHeight * 4;
60 m_pWhiteTexture->SetName(
"white" );
61 m_pWhiteTexture->m_pNextTexture =
TNULL;
62 m_pWhiteTexture->m_pPrevTexture =
TNULL;
68 constexpr int InvalidTextureWidth = 128;
69 constexpr int InvalidTextureHeight = 128;
70 constexpr int InvalidTextureSize = InvalidTextureWidth * InvalidTextureHeight * 4;
74 for (
TUINT8* pos = srcData; pos < srcData + InvalidTextureSize; pos += 4 )
76 *( pos ) = rand() % 256;
77 *( pos + 1 ) = rand() % 256;
78 *( pos + 2 ) = rand() % 256;
79 *( pos + 3 ) = rand() % 256;
84 m_pInvalidTexture->SetName(
"invalid" );
85 m_pInvalidTexture->m_pNextTexture =
TNULL;
86 m_pInvalidTexture->m_pPrevTexture =
TNULL;
122 if ( a_pTexture->m_pPrevTexture )
123 a_pTexture->m_pPrevTexture->m_pNextTexture = a_pTexture->m_pNextTexture;
125 if ( a_pTexture->m_pNextTexture )
126 a_pTexture->m_pNextTexture->m_pPrevTexture = a_pTexture->m_pPrevTexture;
128 if ( m_pLastTexture == a_pTexture )
129 m_pLastTexture = a_pTexture->m_pPrevTexture;
131 a_pTexture->m_pNextTexture =
TNULL;
132 a_pTexture->m_pPrevTexture =
TNULL;
void * TMemalign(TSIZE a_uiAlignment, TSIZE a_uiSize, Toshi::TMemory::MemBlock *a_pMemBlock)
Allocates aligned memory from a specific memory block.