Laid the basis for rendering

This commit is contained in:
Lynix
2012-05-02 16:45:44 +02:00
parent e8ef4b59da
commit 7d117ce97c
25 changed files with 412 additions and 95 deletions

View File

@@ -18,11 +18,13 @@ class NzSoftwareBuffer : public NzBufferImpl
void Bind();
bool Create(unsigned int length, nzUInt8 typeSize, nzBufferUsage usage = nzBufferUsage_Static);
bool Create(unsigned int size, nzBufferUsage usage = nzBufferUsage_Static);
void Destroy();
bool Fill(const void* data, unsigned int offset, unsigned int length);
void* GetBufferPtr();
bool IsHardware() const;
void* Lock(nzBufferLock lock, unsigned int offset = 0, unsigned int length = 0);
@@ -30,10 +32,8 @@ class NzSoftwareBuffer : public NzBufferImpl
private:
nzBufferType m_type;
nzUInt8 m_typeSize;
nzUInt8* m_buffer;
bool m_locked;
unsigned int m_length;
};
#endif // NAZARA_SOFTWAREBUFFER_HPP