"L. Spiro Engine"
|
00001 00017 #ifndef __LSG_DIRECTX9LOSABLERESOURCE_H__ 00018 #define __LSG_DIRECTX9LOSABLERESOURCE_H__ 00019 00020 #include "../LSGGraphicsLib.h" 00021 00022 #ifdef LSG_DX9 00023 00024 namespace lsg { 00025 00033 class CDirectX9LosableResource { 00034 friend class CDirectX9LosableResourceManager; 00035 public : 00036 // == Various constructors. 00037 LSE_CALLCTOR CDirectX9LosableResource(); 00038 LSE_CALLCTOR ~CDirectX9LosableResource(); 00039 00040 00041 // == Functions. 00045 virtual LSVOID LSE_CALL OnDeviceLost() = 0; 00046 00052 virtual LSBOOL LSE_CALL OnDeviceReset() = 0; 00053 00054 00055 protected : 00056 // == Members. 00060 LSBOOL m_bResourceCanBeLost; 00061 00062 private : 00066 LSUINT32 m_ui32UniqueLosableResourceId; 00067 }; 00068 00069 } // namespace lsg 00070 00071 #endif // #ifdef LSG_DX9 00072 00073 #endif // __LSG_DIRECTX9LOSABLERESOURCE_H__