1 #ifdef _MSC_VER 2 #ifdef WIN32 3 #ifndef _TEXTUREFLATDS_H 4 #define _TEXTUREFLATDS_H 5 6 #include "TextureFlat.h" 7 8 namespace DisplayOutput 9 { 10 11 class CTextureFlatDS : public CTextureFlat 12 { 13 LPDIRECTDRAWSURFACE7 m_pTextureDS; 14 15 // Internal to keep track if size or format changed. 16 Base::Math::CRect m_Size; 17 DisplayOutput::eImageFormat m_Format; 18 CBackBufDD *m_BackBuffer; 19 HDC m_hdc; 20 HDC m_sdc; 21 public: 22 CTextureFlatDS(CBackBufDD *backbuffer = NULL, const uint32 _flags = 0 ); 23 virtual ~CTextureFlatDS(); 24 25 virtual bool Upload( spCImage _spImage ); 26 virtual bool Bind( const uint32 _index ); 27 virtual bool Unbind( const uint32 _index ); 28 }; 29 30 MakeSmartPointers( CTextureFlatDS ); 31 32 } 33 34 #endif 35 #endif 36 #endif