Added a Library to most reference-counted classes
Former-commit-id: 3ed409a71dcd5ce4eec7672ac26f8fff00e3b136
This commit is contained in:
@@ -114,3 +114,21 @@ bool NzRenderBuffer::IsSupported()
|
||||
{
|
||||
return NzOpenGL::IsSupported(nzOpenGLExtension_FrameBufferObject);
|
||||
}
|
||||
|
||||
bool NzRenderBuffer::Initialize()
|
||||
{
|
||||
if (!NzRenderBufferLibrary::Initialize())
|
||||
{
|
||||
NazaraError("Failed to initialise library");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void NzRenderBuffer::Uninitialize()
|
||||
{
|
||||
NzRenderBufferLibrary::Uninitialize();
|
||||
}
|
||||
|
||||
NzRenderBufferLibrary::LibraryMap NzRenderBuffer::s_library;
|
||||
|
||||
Reference in New Issue
Block a user