Added a Library to most reference-counted classes
Former-commit-id: 3ed409a71dcd5ce4eec7672ac26f8fff00e3b136
This commit is contained in:
@@ -1392,5 +1392,22 @@ void NzImage::ReleaseImage()
|
||||
m_sharedImage = &emptyImage;
|
||||
}
|
||||
|
||||
bool NzImage::Initialize()
|
||||
{
|
||||
if (!NzImageLibrary::Initialize())
|
||||
{
|
||||
NazaraError("Failed to initialise library");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void NzImage::Uninitialize()
|
||||
{
|
||||
NzImageLibrary::Uninitialize();
|
||||
}
|
||||
|
||||
NzImage::SharedImage NzImage::emptyImage(0, nzImageType_2D, nzPixelFormat_Undefined, 1, nullptr, 0, 0, 0);
|
||||
NzImageLibrary::LibraryMap NzImage::s_library;
|
||||
NzImageLoader::LoaderList NzImage::s_loaders;
|
||||
|
||||
Reference in New Issue
Block a user