"L. Spiro Engine"
|
00001 00017 #ifndef __LSG_DIRECTX10PIXELSHADER_H__ 00018 #define __LSG_DIRECTX10PIXELSHADER_H__ 00019 00020 #include "../LSGGraphicsLib.h" 00021 #include "LSGDirectX10CompiledShader.h" 00022 #include "String/LSTLString.h" 00023 00024 #ifdef LSG_DX10 00025 00026 namespace lsg { 00027 00035 class CDirectX10PixelShader : public CDirectX10CompiledShader { 00036 public : 00037 // == Various constructors. 00038 LSE_CALLCTOR CDirectX10PixelShader(); 00039 virtual LSE_CALLCTOR ~CDirectX10PixelShader(); 00040 00041 00042 // == Functions. 00046 virtual LSVOID LSE_CALL Reset(); 00047 00053 virtual LSBOOL LSE_CALL Activate(); 00054 00058 virtual LSVOID LSE_CALL PreRender(); 00059 00060 00061 protected : 00062 // == Members. 00066 ID3D10PixelShader * m_ppsPixelShader; 00067 00068 00069 // == Functions. 00080 virtual LSBOOL LSE_CALL Compile( const CString &_sShaderText, CShaderLanguageParser::LSG_SHADER_TYPES _stShaderType, CString &_sError ); 00081 00082 00083 private : 00084 typedef CDirectX10CompiledShader Parent; 00085 friend class CDirectX10CompiledShaderManager; 00086 }; 00087 00088 } // namespace lsg 00089 00090 #endif // #ifdef LSG_DX10 00091 00092 #endif // __LSG_DIRECTX10PIXELSHADER_H__