diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.h b/libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.h new file mode 100644 index 0000000..d923094 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.h | |||
@@ -0,0 +1,52 @@ | |||
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 __C_Z_BUFFER_H_INCLUDED__ | ||
6 | #define __C_Z_BUFFER_H_INCLUDED__ | ||
7 | |||
8 | #include "IZBuffer.h" | ||
9 | |||
10 | namespace irr | ||
11 | { | ||
12 | namespace video | ||
13 | { | ||
14 | |||
15 | class CZBuffer : public IZBuffer | ||
16 | { | ||
17 | public: | ||
18 | |||
19 | //! constructor | ||
20 | CZBuffer(const core::dimension2d<u32>& size); | ||
21 | |||
22 | //! destructor | ||
23 | virtual ~CZBuffer(); | ||
24 | |||
25 | //! clears the zbuffer | ||
26 | virtual void clear(); | ||
27 | |||
28 | //! sets the new size of the zbuffer | ||
29 | virtual void setSize(const core::dimension2d<u32>& size); | ||
30 | |||
31 | //! returns the size of the zbuffer | ||
32 | virtual const core::dimension2d<u32>& getSize() const; | ||
33 | |||
34 | //! locks the zbuffer | ||
35 | virtual TZBufferType* lock(); | ||
36 | |||
37 | //! unlocks the zbuffer | ||
38 | virtual void unlock(); | ||
39 | |||
40 | private: | ||
41 | |||
42 | TZBufferType* Buffer; | ||
43 | TZBufferType* BufferEnd; | ||
44 | core::dimension2d<u32> Size; | ||
45 | s32 TotalSize; | ||
46 | }; | ||
47 | |||
48 | } // end namespace video | ||
49 | } // end namespace irr | ||
50 | |||
51 | #endif | ||
52 | |||