Optimized image flipping
Added new extensible flipping system Optimized NzTexture::Update(Face)
This commit is contained in:
@@ -1315,6 +1315,10 @@ bool NzPixelFormat::Initialize()
|
||||
void NzPixelFormat::Uninitialize()
|
||||
{
|
||||
std::memset(s_convertFunctions, 0, (nzPixelFormat_Max+1)*(nzPixelFormat_Max+1)*sizeof(NzPixelFormat::ConvertFunction));
|
||||
|
||||
for (unsigned int i = 0; i <= nzPixelFlipping_Max; ++i)
|
||||
s_flipFunctions[i].clear();
|
||||
}
|
||||
|
||||
NzPixelFormat::ConvertFunction NzPixelFormat::s_convertFunctions[nzPixelFormat_Max+1][nzPixelFormat_Max+1] = {{0}}; ///FIXME: Fonctionne correctement ?
|
||||
std::map<nzPixelFormat, NzPixelFormat::FlipFunction> NzPixelFormat::s_flipFunctions[nzPixelFlipping_Max+1];
|
||||
|
||||
Reference in New Issue
Block a user