diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/IDepthBuffer.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/IDepthBuffer.h | 164 |
1 files changed, 82 insertions, 82 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/IDepthBuffer.h b/libraries/irrlicht-1.8/source/Irrlicht/IDepthBuffer.h index 719d9f1..b7ca875 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/IDepthBuffer.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/IDepthBuffer.h | |||
@@ -1,82 +1,82 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt / Thomas Alten | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt / Thomas Alten |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __I_Z2_BUFFER_H_INCLUDED__ | 5 | #ifndef __I_Z2_BUFFER_H_INCLUDED__ |
6 | #define __I_Z2_BUFFER_H_INCLUDED__ | 6 | #define __I_Z2_BUFFER_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IReferenceCounted.h" | 8 | #include "IReferenceCounted.h" |
9 | #include "dimension2d.h" | 9 | #include "dimension2d.h" |
10 | #include "S4DVertex.h" | 10 | #include "S4DVertex.h" |
11 | 11 | ||
12 | namespace irr | 12 | namespace irr |
13 | { | 13 | { |
14 | namespace video | 14 | namespace video |
15 | { | 15 | { |
16 | class IDepthBuffer : public virtual IReferenceCounted | 16 | class IDepthBuffer : public virtual IReferenceCounted |
17 | { | 17 | { |
18 | public: | 18 | public: |
19 | 19 | ||
20 | //! destructor | 20 | //! destructor |
21 | virtual ~IDepthBuffer() {}; | 21 | virtual ~IDepthBuffer() {}; |
22 | 22 | ||
23 | //! clears the zbuffer | 23 | //! clears the zbuffer |
24 | virtual void clear() = 0; | 24 | virtual void clear() = 0; |
25 | 25 | ||
26 | //! sets the new size of the zbuffer | 26 | //! sets the new size of the zbuffer |
27 | virtual void setSize(const core::dimension2d<u32>& size) = 0; | 27 | virtual void setSize(const core::dimension2d<u32>& size) = 0; |
28 | 28 | ||
29 | //! returns the size of the zbuffer | 29 | //! returns the size of the zbuffer |
30 | virtual const core::dimension2d<u32>& getSize() const = 0; | 30 | virtual const core::dimension2d<u32>& getSize() const = 0; |
31 | 31 | ||
32 | //! locks the zbuffer | 32 | //! locks the zbuffer |
33 | virtual void* lock() = 0; | 33 | virtual void* lock() = 0; |
34 | 34 | ||
35 | //! unlocks the zbuffer | 35 | //! unlocks the zbuffer |
36 | virtual void unlock() = 0; | 36 | virtual void unlock() = 0; |
37 | 37 | ||
38 | //! returns pitch of depthbuffer (in bytes) | 38 | //! returns pitch of depthbuffer (in bytes) |
39 | virtual u32 getPitch() const = 0; | 39 | virtual u32 getPitch() const = 0; |
40 | 40 | ||
41 | }; | 41 | }; |
42 | 42 | ||
43 | 43 | ||
44 | //! creates a ZBuffer | 44 | //! creates a ZBuffer |
45 | IDepthBuffer* createDepthBuffer(const core::dimension2d<u32>& size); | 45 | IDepthBuffer* createDepthBuffer(const core::dimension2d<u32>& size); |
46 | 46 | ||
47 | class IStencilBuffer : public virtual IReferenceCounted | 47 | class IStencilBuffer : public virtual IReferenceCounted |
48 | { | 48 | { |
49 | public: | 49 | public: |
50 | 50 | ||
51 | //! destructor | 51 | //! destructor |
52 | virtual ~IStencilBuffer() {}; | 52 | virtual ~IStencilBuffer() {}; |
53 | 53 | ||
54 | //! clears the zbuffer | 54 | //! clears the zbuffer |
55 | virtual void clear() = 0; | 55 | virtual void clear() = 0; |
56 | 56 | ||
57 | //! sets the new size of the zbuffer | 57 | //! sets the new size of the zbuffer |
58 | virtual void setSize(const core::dimension2d<u32>& size) = 0; | 58 | virtual void setSize(const core::dimension2d<u32>& size) = 0; |
59 | 59 | ||
60 | //! returns the size of the zbuffer | 60 | //! returns the size of the zbuffer |
61 | virtual const core::dimension2d<u32>& getSize() const = 0; | 61 | virtual const core::dimension2d<u32>& getSize() const = 0; |
62 | 62 | ||
63 | //! locks the zbuffer | 63 | //! locks the zbuffer |
64 | virtual void* lock() = 0; | 64 | virtual void* lock() = 0; |
65 | 65 | ||
66 | //! unlocks the zbuffer | 66 | //! unlocks the zbuffer |
67 | virtual void unlock() = 0; | 67 | virtual void unlock() = 0; |
68 | 68 | ||
69 | //! returns pitch of depthbuffer (in bytes) | 69 | //! returns pitch of depthbuffer (in bytes) |
70 | virtual u32 getPitch() const = 0; | 70 | virtual u32 getPitch() const = 0; |
71 | 71 | ||
72 | }; | 72 | }; |
73 | 73 | ||
74 | 74 | ||
75 | //! creates a Stencil Buffer | 75 | //! creates a Stencil Buffer |
76 | IStencilBuffer* createStencilBuffer(const core::dimension2d<u32>& size); | 76 | IStencilBuffer* createStencilBuffer(const core::dimension2d<u32>& size); |
77 | 77 | ||
78 | } // end namespace video | 78 | } // end namespace video |
79 | } // end namespace irr | 79 | } // end namespace irr |
80 | 80 | ||
81 | #endif | 81 | #endif |
82 | 82 | ||