diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CD3D8NormalMapRenderer.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CD3D8NormalMapRenderer.h | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CD3D8NormalMapRenderer.h b/libraries/irrlicht-1.8/source/Irrlicht/CD3D8NormalMapRenderer.h index e53ab65..20c5663 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CD3D8NormalMapRenderer.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CD3D8NormalMapRenderer.h | |||
@@ -1,56 +1,56 @@ | |||
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_NORMAL_MAPMATERIAL_RENDERER_H_INCLUDED__ | 5 | #ifndef __C_D3D8_NORMAL_MAPMATERIAL_RENDERER_H_INCLUDED__ |
6 | #define __C_D3D8_NORMAL_MAPMATERIAL_RENDERER_H_INCLUDED__ | 6 | #define __C_D3D8_NORMAL_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 | ||
17 | namespace irr | 17 | namespace irr |
18 | { | 18 | { |
19 | namespace video | 19 | namespace video |
20 | { | 20 | { |
21 | 21 | ||
22 | //! Renderer for normal maps | 22 | //! Renderer for normal maps |
23 | class CD3D8NormalMapRenderer : public CD3D8ShaderMaterialRenderer, IShaderConstantSetCallBack | 23 | class CD3D8NormalMapRenderer : public CD3D8ShaderMaterialRenderer, IShaderConstantSetCallBack |
24 | { | 24 | { |
25 | public: | 25 | public: |
26 | 26 | ||
27 | CD3D8NormalMapRenderer( | 27 | CD3D8NormalMapRenderer( |
28 | IDirect3DDevice8* d3ddev, video::IVideoDriver* driver, | 28 | IDirect3DDevice8* d3ddev, video::IVideoDriver* driver, |
29 | s32& outMaterialTypeNr, IMaterialRenderer* baseMaterial); | 29 | s32& outMaterialTypeNr, IMaterialRenderer* baseMaterial); |
30 | ~CD3D8NormalMapRenderer(); | 30 | ~CD3D8NormalMapRenderer(); |
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 | bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype); | 36 | bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype); |
37 | 37 | ||
38 | //! Returns the render capability of the material. | 38 | //! Returns the render capability of the material. |
39 | virtual s32 getRenderCapability() const; | 39 | virtual s32 getRenderCapability() const; |
40 | 40 | ||
41 | private: | 41 | private: |
42 | 42 | ||
43 | //! stores if this shader compiled the shaders and is | 43 | //! stores if this shader compiled the shaders and is |
44 | //! allowed to delete them again. D3D8 lacks reference counting | 44 | //! allowed to delete them again. D3D8 lacks reference counting |
45 | //! support for shaders. | 45 | //! support for shaders. |
46 | bool CompiledShaders; | 46 | bool CompiledShaders; |
47 | 47 | ||
48 | }; | 48 | }; |
49 | 49 | ||
50 | } // end namespace video | 50 | } // end namespace video |
51 | } // end namespace irr | 51 | } // end namespace irr |
52 | 52 | ||
53 | #endif | 53 | #endif |
54 | #endif | 54 | #endif |
55 | #endif | 55 | #endif |
56 | 56 | ||