aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CDepthBuffer.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CDepthBuffer.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CDepthBuffer.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CDepthBuffer.h188
1 files changed, 94 insertions, 94 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CDepthBuffer.h b/libraries/irrlicht-1.8/source/Irrlicht/CDepthBuffer.h
index 2355e61..56dc83f 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CDepthBuffer.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CDepthBuffer.h
@@ -1,94 +1,94 @@
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 __C_Z_BUFFER_H_INCLUDED__ 5#ifndef __C_Z_BUFFER_H_INCLUDED__
6#define __C_Z_BUFFER_H_INCLUDED__ 6#define __C_Z_BUFFER_H_INCLUDED__
7 7
8#include "IDepthBuffer.h" 8#include "IDepthBuffer.h"
9 9
10namespace irr 10namespace irr
11{ 11{
12namespace video 12namespace video
13{ 13{
14 14
15 class CDepthBuffer : public IDepthBuffer 15 class CDepthBuffer : public IDepthBuffer
16 { 16 {
17 public: 17 public:
18 18
19 //! constructor 19 //! constructor
20 CDepthBuffer(const core::dimension2d<u32>& size); 20 CDepthBuffer(const core::dimension2d<u32>& size);
21 21
22 //! destructor 22 //! destructor
23 virtual ~CDepthBuffer(); 23 virtual ~CDepthBuffer();
24 24
25 //! clears the zbuffer 25 //! clears the zbuffer
26 virtual void clear(); 26 virtual void clear();
27 27
28 //! sets the new size of the zbuffer 28 //! sets the new size of the zbuffer
29 virtual void setSize(const core::dimension2d<u32>& size); 29 virtual void setSize(const core::dimension2d<u32>& size);
30 30
31 //! returns the size of the zbuffer 31 //! returns the size of the zbuffer
32 virtual const core::dimension2d<u32>& getSize() const; 32 virtual const core::dimension2d<u32>& getSize() const;
33 33
34 //! locks the zbuffer 34 //! locks the zbuffer
35 virtual void* lock() { return (void*) Buffer; } 35 virtual void* lock() { return (void*) Buffer; }
36 36
37 //! unlocks the zbuffer 37 //! unlocks the zbuffer
38 virtual void unlock() {} 38 virtual void unlock() {}
39 39
40 //! returns pitch of depthbuffer (in bytes) 40 //! returns pitch of depthbuffer (in bytes)
41 virtual u32 getPitch() const { return Pitch; } 41 virtual u32 getPitch() const { return Pitch; }
42 42
43 43
44 private: 44 private:
45 45
46 u8* Buffer; 46 u8* Buffer;
47 core::dimension2d<u32> Size; 47 core::dimension2d<u32> Size;
48 u32 TotalSize; 48 u32 TotalSize;
49 u32 Pitch; 49 u32 Pitch;
50 }; 50 };
51 51
52 52
53 class CStencilBuffer : public IStencilBuffer 53 class CStencilBuffer : public IStencilBuffer
54 { 54 {
55 public: 55 public:
56 56
57 //! constructor 57 //! constructor
58 CStencilBuffer(const core::dimension2d<u32>& size); 58 CStencilBuffer(const core::dimension2d<u32>& size);
59 59
60 //! destructor 60 //! destructor
61 virtual ~CStencilBuffer(); 61 virtual ~CStencilBuffer();
62 62
63 //! clears the zbuffer 63 //! clears the zbuffer
64 virtual void clear(); 64 virtual void clear();
65 65
66 //! sets the new size of the zbuffer 66 //! sets the new size of the zbuffer
67 virtual void setSize(const core::dimension2d<u32>& size); 67 virtual void setSize(const core::dimension2d<u32>& size);
68 68
69 //! returns the size of the zbuffer 69 //! returns the size of the zbuffer
70 virtual const core::dimension2d<u32>& getSize() const; 70 virtual const core::dimension2d<u32>& getSize() const;
71 71
72 //! locks the zbuffer 72 //! locks the zbuffer
73 virtual void* lock() { return (void*) Buffer; } 73 virtual void* lock() { return (void*) Buffer; }
74 74
75 //! unlocks the zbuffer 75 //! unlocks the zbuffer
76 virtual void unlock() {} 76 virtual void unlock() {}
77 77
78 //! returns pitch of depthbuffer (in bytes) 78 //! returns pitch of depthbuffer (in bytes)
79 virtual u32 getPitch() const { return Pitch; } 79 virtual u32 getPitch() const { return Pitch; }
80 80
81 81
82 private: 82 private:
83 83
84 u8* Buffer; 84 u8* Buffer;
85 core::dimension2d<u32> Size; 85 core::dimension2d<u32> Size;
86 u32 TotalSize; 86 u32 TotalSize;
87 u32 Pitch; 87 u32 Pitch;
88 }; 88 };
89 89
90} // end namespace video 90} // end namespace video
91} // end namespace irr 91} // end namespace irr
92 92
93#endif 93#endif
94 94