"L. Spiro Engine"
|
00001 00016 #ifndef __LSG_DIRECTX10CUBETEXTURE_H__ 00017 #define __LSG_DIRECTX10CUBETEXTURE_H__ 00018 00019 #include "../LSGGraphicsLib.h" 00020 #include "../Texture/LSGTextureBase.h" 00021 #include "LSGDirectX10StandardTexture.h" 00022 00023 #ifdef LSG_DX10 00024 00025 namespace lsg { 00026 00033 class CDirectX10CubeTexture : public CTextureBase { 00034 public : 00035 // == Various constructors. 00036 LSE_CALLCTOR CDirectX10CubeTexture(); 00037 virtual LSE_CALLCTOR ~CDirectX10CubeTexture(); 00038 00039 00040 // == Functions. 00044 LSVOID LSE_CALL Reset(); 00045 00046 00047 protected : 00048 // == Members. 00052 CImage m_iFaces[6]; 00053 00057 ID3D10Texture2D * m_ptTexture; 00058 00062 ID3D10RenderTargetView * m_prtvView; 00063 00067 ID3D10ShaderResourceView * m_psrvResourceView; 00068 00069 00070 // == Functions. 00074 LSVOID LSE_CALL ResetApi(); 00075 00081 LSBOOL LSE_CALL CreateApiTexture(); 00082 00083 00084 private : 00085 typedef CTextureBase Parent; 00086 }; 00087 00088 00089 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00090 // DEFINITIONS 00091 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00092 00093 } // namespace lsg 00094 00095 #endif // #ifdef LSG_DX10 00096 00097 #endif // __LSG_DIRECTX10CUBETEXTURE_H__