diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/IZBuffer.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/IZBuffer.h b/libraries/irrlicht-1.8/source/Irrlicht/IZBuffer.h new file mode 100644 index 0000000..2c235a8 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/IZBuffer.h | |||
@@ -0,0 +1,47 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | ||
2 | // This file is part of the "Irrlicht Engine". | ||
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | ||
4 | |||
5 | #ifndef __I_Z_BUFFER_H_INCLUDED__ | ||
6 | #define __I_Z_BUFFER_H_INCLUDED__ | ||
7 | |||
8 | #include "IReferenceCounted.h" | ||
9 | #include "dimension2d.h" | ||
10 | #include "S2DVertex.h" | ||
11 | |||
12 | namespace irr | ||
13 | { | ||
14 | namespace video | ||
15 | { | ||
16 | class IZBuffer : public virtual IReferenceCounted | ||
17 | { | ||
18 | public: | ||
19 | |||
20 | //! destructor | ||
21 | virtual ~IZBuffer() {}; | ||
22 | |||
23 | //! clears the zbuffer | ||
24 | virtual void clear() = 0; | ||
25 | |||
26 | //! sets the new size of the zbuffer | ||
27 | virtual void setSize(const core::dimension2d<u32>& size) = 0; | ||
28 | |||
29 | //! returns the size of the zbuffer | ||
30 | virtual const core::dimension2d<u32>& getSize() const = 0; | ||
31 | |||
32 | //! locks the zbuffer | ||
33 | virtual TZBufferType* lock() = 0; | ||
34 | |||
35 | //! unlocks the zbuffer | ||
36 | virtual void unlock() = 0; | ||
37 | }; | ||
38 | |||
39 | |||
40 | //! creates a ZBuffer | ||
41 | IZBuffer* createZBuffer(const core::dimension2d<u32>& size); | ||
42 | |||
43 | } // end namespace video | ||
44 | } // end namespace irr | ||
45 | |||
46 | #endif | ||
47 | |||