aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CD3D8ParallaxMapRenderer.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/CD3D8ParallaxMapRenderer.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 '')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CD3D8ParallaxMapRenderer.h124
1 files changed, 62 insertions, 62 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CD3D8ParallaxMapRenderer.h b/libraries/irrlicht-1.8/source/Irrlicht/CD3D8ParallaxMapRenderer.h
index 4543ab7..70b8de5 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CD3D8ParallaxMapRenderer.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CD3D8ParallaxMapRenderer.h
@@ -1,62 +1,62 @@
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_D3D8_PARALLAX_MAPMATERIAL_RENDERER_H_INCLUDED__ 5#ifndef __C_D3D8_PARALLAX_MAPMATERIAL_RENDERER_H_INCLUDED__
6#define __C_D3D8_PARALLAX_MAPMATERIAL_RENDERER_H_INCLUDED__ 6#define __C_D3D8_PARALLAX_MAPMATERIAL_RENDERER_H_INCLUDED__
7 7
8#include "IrrCompileConfig.h" 8#include "IrrCompileConfig.h"
9#ifdef _IRR_WINDOWS_API_ 9#ifdef _IRR_WINDOWS_API_
10 10
11#ifdef _IRR_COMPILE_WITH_DIRECT3D_8_ 11#ifdef _IRR_COMPILE_WITH_DIRECT3D_8_
12#include <d3d8.h> 12#include <d3d8.h>
13 13
14#include "CD3D8ShaderMaterialRenderer.h" 14#include "CD3D8ShaderMaterialRenderer.h"
15#include "IShaderConstantSetCallBack.h" 15#include "IShaderConstantSetCallBack.h"
16 16
17namespace irr 17namespace irr
18{ 18{
19namespace video 19namespace video
20{ 20{
21 21
22//! Renderer for parallax maps 22//! Renderer for parallax maps
23class CD3D8ParallaxMapRenderer : public CD3D8ShaderMaterialRenderer, IShaderConstantSetCallBack 23class CD3D8ParallaxMapRenderer : public CD3D8ShaderMaterialRenderer, IShaderConstantSetCallBack
24{ 24{
25public: 25public:
26 26
27 CD3D8ParallaxMapRenderer( 27 CD3D8ParallaxMapRenderer(
28 IDirect3DDevice8* d3ddev, video::IVideoDriver* driver, 28 IDirect3DDevice8* d3ddev, video::IVideoDriver* driver,
29 s32& outMaterialTypeNr, IMaterialRenderer* baseMaterial); 29 s32& outMaterialTypeNr, IMaterialRenderer* baseMaterial);
30 ~CD3D8ParallaxMapRenderer(); 30 ~CD3D8ParallaxMapRenderer();
31 31
32 //! Called by the engine when the vertex and/or pixel shader constants for an 32 //! Called by the engine when the vertex and/or pixel shader constants for an
33 //! material renderer should be set. 33 //! material renderer should be set.
34 virtual void OnSetConstants(IMaterialRendererServices* services, s32 userData); 34 virtual void OnSetConstants(IMaterialRendererServices* services, s32 userData);
35 35
36 virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype); 36 virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype);
37 37
38 virtual void OnSetMaterial(const SMaterial& material) { } 38 virtual void OnSetMaterial(const SMaterial& material) { }
39 virtual void OnSetMaterial(const video::SMaterial& material, 39 virtual void OnSetMaterial(const video::SMaterial& material,
40 const video::SMaterial& lastMaterial, 40 const video::SMaterial& lastMaterial,
41 bool resetAllRenderstates, video::IMaterialRendererServices* services); 41 bool resetAllRenderstates, video::IMaterialRendererServices* services);
42 42
43 //! Returns the render capability of the material. 43 //! Returns the render capability of the material.
44 virtual s32 getRenderCapability() const; 44 virtual s32 getRenderCapability() const;
45 45
46private: 46private:
47 47
48 //! stores if this shader compiled the shaders and is 48 //! stores if this shader compiled the shaders and is
49 //! allowed to delete them again. D3D8 lacks reference counting 49 //! allowed to delete them again. D3D8 lacks reference counting
50 //! support for shaders. 50 //! support for shaders.
51 bool CompiledShaders; 51 bool CompiledShaders;
52 52
53 f32 CurrentScale; 53 f32 CurrentScale;
54}; 54};
55 55
56} // end namespace video 56} // end namespace video
57} // end namespace irr 57} // end namespace irr
58 58
59#endif 59#endif
60#endif 60#endif
61#endif 61#endif
62 62