aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/source/Irrlicht/IDepthBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/source/Irrlicht/IDepthBuffer.h')
-rw-r--r--src/others/irrlicht-1.8.1/source/Irrlicht/IDepthBuffer.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/source/Irrlicht/IDepthBuffer.h b/src/others/irrlicht-1.8.1/source/Irrlicht/IDepthBuffer.h
new file mode 100644
index 0000000..719d9f1
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/source/Irrlicht/IDepthBuffer.h
@@ -0,0 +1,82 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt / Thomas Alten
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_Z2_BUFFER_H_INCLUDED__
6#define __I_Z2_BUFFER_H_INCLUDED__
7
8#include "IReferenceCounted.h"
9#include "dimension2d.h"
10#include "S4DVertex.h"
11
12namespace irr
13{
14namespace video
15{
16 class IDepthBuffer : public virtual IReferenceCounted
17 {
18 public:
19
20 //! destructor
21 virtual ~IDepthBuffer() {};
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 void* lock() = 0;
34
35 //! unlocks the zbuffer
36 virtual void unlock() = 0;
37
38 //! returns pitch of depthbuffer (in bytes)
39 virtual u32 getPitch() const = 0;
40
41 };
42
43
44 //! creates a ZBuffer
45 IDepthBuffer* createDepthBuffer(const core::dimension2d<u32>& size);
46
47 class IStencilBuffer : public virtual IReferenceCounted
48 {
49 public:
50
51 //! destructor
52 virtual ~IStencilBuffer() {};
53
54 //! clears the zbuffer
55 virtual void clear() = 0;
56
57 //! sets the new size of the zbuffer
58 virtual void setSize(const core::dimension2d<u32>& size) = 0;
59
60 //! returns the size of the zbuffer
61 virtual const core::dimension2d<u32>& getSize() const = 0;
62
63 //! locks the zbuffer
64 virtual void* lock() = 0;
65
66 //! unlocks the zbuffer
67 virtual void unlock() = 0;
68
69 //! returns pitch of depthbuffer (in bytes)
70 virtual u32 getPitch() const = 0;
71
72 };
73
74
75 //! creates a Stencil Buffer
76 IStencilBuffer* createStencilBuffer(const core::dimension2d<u32>& size);
77
78} // end namespace video
79} // end namespace irr
80
81#endif
82