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

@@ -25,7 +25,7 @@ class NAZARA_API NzBuffer : public NzResource, NzNonCopyable
friend class NzUtility;
public:
using BufferFunction = NzAbstractBuffer* (*)(NzBuffer* parent, nzBufferType type);
using BufferFactory = NzAbstractBuffer* (*)(NzBuffer* parent, nzBufferType type);
NzBuffer(nzBufferType type);
NzBuffer(nzBufferType type, unsigned int size, nzDataStorage storage = nzDataStorage_Software, nzBufferUsage usage = nzBufferUsage_Static);
@@ -55,7 +55,7 @@ class NAZARA_API NzBuffer : public NzResource, NzNonCopyable
void Unmap() const;
static bool IsSupported(nzDataStorage storage);
static void SetBufferFunction(nzDataStorage storage, BufferFunction func);
static void SetBufferFactory(nzDataStorage storage, BufferFactory func);
private:
static bool Initialize();
@@ -67,7 +67,7 @@ class NAZARA_API NzBuffer : public NzResource, NzNonCopyable
NzAbstractBuffer* m_impl;
unsigned int m_size;
static BufferFunction s_bufferFunctions[nzDataStorage_Max+1];
static BufferFactory s_bufferFactories[nzDataStorage_Max+1];
};
#endif // NAZARA_BUFFER_HPP