/*!
	@file
	@author		Albert Semenov
	@date		12/2009
	@module
*/

#ifndef __MYGUI_RTT_LAYER_H__
#define __MYGUI_RTT_LAYER_H__

#include "MyGUI_Prerequest.h"
#include "MyGUI_Types.h"
#include "MyGUI_OverlappedLayer.h"

namespace MyGUI
{

	class RTTLayer :
		public OverlappedLayer
	{
		MYGUI_RTTI_DERIVED( RTTLayer )

	public:
		RTTLayer();
		virtual ~RTTLayer();

		virtual void deserialization(xml::ElementPtr _node, Version _version);
		virtual void renderToTarget(IRenderTarget* _target, bool _update);

		void setTextureSize(const IntSize& _size);
		void setTextureName(const std::string& _name);

	private:
		MyGUI::ITexture* mTexture;
		IntSize mTextureSize;
		std::string mTextureName;
	};

} // namespace MyGUI

#endif // __MYGUI_RTT_LAYER_H__
