"L. Spiro Engine"
|
00001 00018 #ifndef __LSG_DIRECTX9SHADERMANAGER_H__ 00019 #define __LSG_DIRECTX9SHADERMANAGER_H__ 00020 00021 #include "../LSGGraphicsLib.h" 00022 #include "../Fnd/LSGFnd.h" 00023 #include "../ShaderLanguage/LSGShader.h" 00024 00025 #if defined( LSG_DX9 ) 00026 00027 namespace lsg { 00028 00037 class CDirectX9ShaderManager { 00038 public : 00039 // == Various constructors. 00040 LSE_CALLCTOR CDirectX9ShaderManager(); 00041 LSE_CALLCTOR ~CDirectX9ShaderManager(); 00042 00043 00051 LSVOID LSE_CALL SetShader( CShader * _psShader ); 00052 00058 CShader * LSE_CALL GetShader(); 00059 00063 LSVOID LSE_CALL PrepareForRender(); 00064 00065 protected : 00066 // == Members. 00070 CShader * m_psActiveShader; 00071 00075 CShader::LSG_LIGHT_FULLDATA m_lfdLightData; 00076 }; 00077 00078 } // namespace lsg 00079 00080 #endif // #if defined( LSG_DX9 ) 00081 00082 #endif // __LSG_DIRECTX9SHADERMANAGER_H__