Renamed (Set)BufferFunction to (Set)BufferFactory

Former-commit-id: 6165dcd881716461a9886be6ce7fd6bb2b335ef0
This commit is contained in:
Lynix
2015-01-04 18:23:06 +01:00
parent b3d72ec094
commit d560975e09
3 changed files with 18 additions and 16 deletions

View File

@@ -692,7 +692,10 @@ bool NzRenderer::Initialize()
return false;
}
NzBuffer::SetBufferFunction(nzDataStorage_Hardware, [](NzBuffer* parent, nzBufferType type) -> NzAbstractBuffer* { return new NzHardwareBuffer(parent, type); } );
NzBuffer::SetBufferFactory(nzDataStorage_Hardware, [](NzBuffer* parent, nzBufferType type) -> NzAbstractBuffer*
{
return new NzHardwareBuffer(parent, type);
});
for (unsigned int i = 0; i <= nzMatrixType_Max; ++i)
{