1 /*! 2 @file 3 @author Albert Semenov 4 @date 12/2009 5 */ 6 7 #ifndef _a14ff7f6_117d_4239_aafd_0dc59d7adfe1_ 8 #define _a14ff7f6_117d_4239_aafd_0dc59d7adfe1_ 9 10 #include "MyGUI_Prerequest.h" 11 #include "MyGUI_Types.h" 12 #include "MyGUI_OverlappedLayer.h" 13 14 namespace MyGUI 15 { 16 17 class RTTLayer : 18 public OverlappedLayer 19 { 20 MYGUI_RTTI_DERIVED( RTTLayer ) 21 22 public: 23 RTTLayer(); 24 ~RTTLayer() override; 25 26 void deserialization(xml::ElementPtr _node, Version _version) override; 27 void renderToTarget(IRenderTarget* _target, bool _update) override; 28 void resizeView(const IntSize& _viewSize) override; 29 30 void setTextureSize(const IntSize& _size); 31 void setTextureName(const std::string& _name); 32 33 virtual const IntSize& getSize() const; 34 35 private: 36 MyGUI::ITexture* mTexture; 37 IntSize mTextureSize; 38 std::string mTextureName; 39 bool mOutOfDateRtt; 40 }; 41 42 } 43 44 #endif 45