]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/COpenGLNormalMapRenderer.h
Fix some more problems with OSX build file.
[irrlicht.git] / source / Irrlicht / COpenGLNormalMapRenderer.h
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt\r
2 // This file is part of the "Irrlicht Engine".\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h\r
4 \r
5 #ifndef __C_OPENGL_NORMAL_MAP_RENDERER_H_INCLUDED__\r
6 #define __C_OPENGL_NORMAL_MAP_RENDERER_H_INCLUDED__\r
7 \r
8 #include "IrrCompileConfig.h"\r
9 \r
10 #ifdef _IRR_COMPILE_WITH_OPENGL_\r
11 \r
12 #include "IShaderConstantSetCallBack.h"\r
13 \r
14 #include "COpenGLShaderMaterialRenderer.h"\r
15 \r
16 namespace irr\r
17 {\r
18 namespace video\r
19 {\r
20 \r
21 //! Class for rendering normal maps with OpenGL\r
22 class COpenGLNormalMapRenderer : public COpenGLShaderMaterialRenderer, public IShaderConstantSetCallBack\r
23 {\r
24 public:\r
25 \r
26         //! Constructor\r
27         COpenGLNormalMapRenderer(video::COpenGLDriver* driver,\r
28                 s32& outMaterialTypeNr, E_MATERIAL_TYPE baseMaterial);\r
29 \r
30         //! Destructor\r
31         ~COpenGLNormalMapRenderer();\r
32 \r
33         //! Called by the engine when the vertex and/or pixel shader constants for an\r
34         //! material renderer should be set.\r
35         virtual void OnSetConstants(IMaterialRendererServices* services, s32 userData) _IRR_OVERRIDE_;\r
36 \r
37         //! Returns the render capability of the material.\r
38         virtual s32 getRenderCapability() const _IRR_OVERRIDE_;\r
39 \r
40 protected:\r
41 \r
42         bool CompiledShaders;\r
43 };\r
44 \r
45 \r
46 } // end namespace video\r
47 } // end namespace irr\r
48 \r
49 #endif\r
50 #endif\r
51 \r