#ifndef __I_Z2_BUFFER_H_INCLUDED__
#define __I_Z2_BUFFER_H_INCLUDED__
#include "IReferenceCounted.h"
#include "dimension2d.h"
#include "S4DVertex.h"
namespace irr
{
namespace video
{
class IDepthBuffer : public virtual IReferenceCounted
{
public:
virtual ~IDepthBuffer() {};
virtual void clear() = 0;
virtual void setSize(const core::dimension2d<u32>& size) = 0;
virtual const core::dimension2d<u32>& getSize() const = 0;
virtual void* lock() = 0;
virtual void unlock() = 0;
virtual u32 getPitch() const = 0;
};
IDepthBuffer* createDepthBuffer(const core::dimension2d<u32>& size);
class IStencilBuffer : public virtual IReferenceCounted
{
public:
virtual ~IStencilBuffer() {};
virtual void clear() = 0;
virtual void setSize(const core::dimension2d<u32>& size) = 0;
virtual const core::dimension2d<u32>& getSize() const = 0;
virtual void* lock() = 0;
virtual void unlock() = 0;
virtual u32 getPitch() const = 0;
};
IStencilBuffer* createStencilBuffer(const core::dimension2d<u32>& size);
}
}
#endif