"L. Spiro Engine"
|
00001 00016 #ifndef __LSG_DIRECTX10RENDERTARGET_H__ 00017 #define __LSG_DIRECTX10RENDERTARGET_H__ 00018 00019 #include "../LSGGraphicsLib.h" 00020 #include "../RenderTarget/LSGRenderTargetBase.h" 00021 #include "../Texture/LSGTextureBase.h" 00022 00023 #ifdef LSG_DX10 00024 00025 namespace lsg { 00026 00033 class CDirectX10RenderTarget : public CRenderTargetBase { 00034 friend class CDirectX10RenderTargetManager; 00035 public : 00036 // == Functions. 00043 virtual LSBOOL LSE_CALL Activate( LSUINT32 _ui32Slot ); 00044 00045 00046 protected : 00047 // == Various constructors. 00048 LSE_CALLCTOR CDirectX10RenderTarget(); 00049 LSE_CALLCTOR ~CDirectX10RenderTarget(); 00050 00051 00052 // == Members. 00058 ID3D10Texture2D * m_pt2tTexture; 00059 00063 ID3D10RenderTargetView * m_prtvTargetView; 00064 00068 ID3D10ShaderResourceView * m_psrvResourceView; 00069 00070 00071 // == Functions. 00075 LSVOID LSE_CALL ResetApi(); 00076 00083 LSBOOL LSE_CALL CreateApiRenderTarget(); 00084 00091 virtual LSBOOL LSE_CALL SetAsColorRenderTarget( LSUINT32 _ui32Slot ) const; 00092 00096 virtual LSVOID LSE_CALL EndAsRenderTarget() const; 00097 00098 }; 00099 00100 00101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00102 // DEFINITIONS 00103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00104 00105 00106 } // namespace lsg 00107 00108 #endif // #ifdef LSG_DX10 00109 00110 #endif // __LSG_DIRECTX10RENDERTARGET_H__