#ifndef __C_Z_BUFFER_H_INCLUDED__
#define __C_Z_BUFFER_H_INCLUDED__
#include "IZBuffer.h"
namespace irr
{
namespace video
{
class CZBuffer : public IZBuffer
{
public:
CZBuffer(const core::dimension2d<u32>& size);
virtual ~CZBuffer();
virtual void clear();
virtual void setSize(const core::dimension2d<u32>& size);
virtual const core::dimension2d<u32>& getSize() const;
virtual TZBufferType* lock();
virtual void unlock();
private:
TZBufferType* Buffer;
TZBufferType* BufferEnd;
core::dimension2d<u32> Size;
s32 TotalSize;
};
}
}
#endif