aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 17:24:39 +1000
committerDavid Walter Seikel2013-01-13 17:24:39 +1000
commit393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch)
tree6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.h
parentAdd a note about rasters suggested start up code. (diff)
downloadSledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.h52
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
10namespace irr
11{
12namespace 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