aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CTRTextureGouraud.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/CTRTextureGouraud.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/CTRTextureGouraud.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CTRTextureGouraud.h170
1 files changed, 85 insertions, 85 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CTRTextureGouraud.h b/libraries/irrlicht-1.8/source/Irrlicht/CTRTextureGouraud.h
index 0885363..42eaeda 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CTRTextureGouraud.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CTRTextureGouraud.h
@@ -1,85 +1,85 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt 1// Copyright (C) 2002-2012 Nikolaus Gebhardt
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_TRIANGLE_RENDERER_TEXTURE_GOURAUD_H_INCLUDED__ 5#ifndef __C_TRIANGLE_RENDERER_TEXTURE_GOURAUD_H_INCLUDED__
6#define __C_TRIANGLE_RENDERER_TEXTURE_GOURAUD_H_INCLUDED__ 6#define __C_TRIANGLE_RENDERER_TEXTURE_GOURAUD_H_INCLUDED__
7 7
8#include "IrrCompileConfig.h" 8#include "IrrCompileConfig.h"
9 9
10#ifndef _IRR_COMPILE_WITH_SOFTWARE_ 10#ifndef _IRR_COMPILE_WITH_SOFTWARE_
11// forward declarations for create methods 11// forward declarations for create methods
12namespace irr 12namespace irr
13{ 13{
14namespace video 14namespace video
15{ 15{
16 class ITriangleRenderer; 16 class ITriangleRenderer;
17 class IZBuffer; 17 class IZBuffer;
18} // end namespace video 18} // end namespace video
19} // end namespace irr 19} // end namespace irr
20 20
21#else 21#else
22 22
23#include "ITriangleRenderer.h" 23#include "ITriangleRenderer.h"
24#include "IImage.h" 24#include "IImage.h"
25 25
26namespace irr 26namespace irr
27{ 27{
28namespace video 28namespace video
29{ 29{
30 //! CTRTextureGouraud class 30 //! CTRTextureGouraud class
31 class CTRTextureGouraud : public ITriangleRenderer 31 class CTRTextureGouraud : public ITriangleRenderer
32 { 32 {
33 public: 33 public:
34 34
35 //! constructor 35 //! constructor
36 CTRTextureGouraud(IZBuffer* zbuffer); 36 CTRTextureGouraud(IZBuffer* zbuffer);
37 37
38 //! destructor 38 //! destructor
39 virtual ~CTRTextureGouraud(); 39 virtual ~CTRTextureGouraud();
40 40
41 //! sets a render target 41 //! sets a render target
42 virtual void setRenderTarget(video::IImage* surface, const core::rect<s32>& viewPort); 42 virtual void setRenderTarget(video::IImage* surface, const core::rect<s32>& viewPort);
43 43
44 //! draws an indexed triangle list 44 //! draws an indexed triangle list
45 virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount); 45 virtual void drawIndexedTriangleList(S2DVertex* vertices, s32 vertexCount, const u16* indexList, s32 triangleCount);
46 46
47 //! en or disables the backface culling 47 //! en or disables the backface culling
48 virtual void setBackfaceCulling(bool enabled = true); 48 virtual void setBackfaceCulling(bool enabled = true);
49 49
50 //! sets the Texture 50 //! sets the Texture
51 virtual void setTexture(video::IImage* texture); 51 virtual void setTexture(video::IImage* texture);
52 52
53 protected: 53 protected:
54 54
55 //! vertauscht zwei vertizen 55 //! vertauscht zwei vertizen
56 inline void swapVertices(const S2DVertex** v1, const S2DVertex** v2) 56 inline void swapVertices(const S2DVertex** v1, const S2DVertex** v2)
57 { 57 {
58 const S2DVertex* b = *v1; 58 const S2DVertex* b = *v1;
59 *v1 = *v2; 59 *v1 = *v2;
60 *v2 = b; 60 *v2 = b;
61 } 61 }
62 62
63 video::IImage* RenderTarget; 63 video::IImage* RenderTarget;
64 core::rect<s32> ViewPortRect; 64 core::rect<s32> ViewPortRect;
65 65
66 IZBuffer* ZBuffer; 66 IZBuffer* ZBuffer;
67 67
68 s32 SurfaceWidth; 68 s32 SurfaceWidth;
69 s32 SurfaceHeight; 69 s32 SurfaceHeight;
70 bool BackFaceCullingEnabled; 70 bool BackFaceCullingEnabled;
71 TZBufferType* lockedZBuffer; 71 TZBufferType* lockedZBuffer;
72 u16* lockedSurface; 72 u16* lockedSurface;
73 u16* lockedTexture; 73 u16* lockedTexture;
74 s32 lockedTextureWidth; 74 s32 lockedTextureWidth;
75 s32 textureXMask, textureYMask; 75 s32 textureXMask, textureYMask;
76 video::IImage* Texture; 76 video::IImage* Texture;
77 }; 77 };
78 78
79} // end namespace video 79} // end namespace video
80} // end namespace irr 80} // end namespace irr
81 81
82#endif 82#endif
83 83
84#endif 84#endif
85 85