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
5 #ifndef __C_OPENGL_NORMAL_MAP_RENDERER_H_INCLUDED__
\r
6 #define __C_OPENGL_NORMAL_MAP_RENDERER_H_INCLUDED__
\r
8 #include "IrrCompileConfig.h"
\r
10 #ifdef _IRR_COMPILE_WITH_OPENGL_
\r
12 #include "IShaderConstantSetCallBack.h"
\r
14 #include "COpenGLShaderMaterialRenderer.h"
\r
21 //! Class for rendering normal maps with OpenGL
\r
22 class COpenGLNormalMapRenderer : public COpenGLShaderMaterialRenderer, public IShaderConstantSetCallBack
\r
27 COpenGLNormalMapRenderer(video::COpenGLDriver* driver,
\r
28 s32& outMaterialTypeNr, E_MATERIAL_TYPE baseMaterial);
\r
31 ~COpenGLNormalMapRenderer();
\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
37 //! Returns the render capability of the material.
\r
38 virtual s32 getRenderCapability() const _IRR_OVERRIDE_;
\r
42 bool CompiledShaders;
\r
46 } // end namespace video
\r
47 } // end namespace irr
\r