RigsofRods
Soft-body Physics Simulation
RTTLayer.h
Go to the documentation of this file.
1 // based on the MyGUI UnitTests
2 
3 #pragma once
4 
5 #include "MyGUI_Prerequest.h"
6 #include "MyGUI_Types.h"
7 #include "MyGUI_OverlappedLayer.h"
8 
9 namespace MyGUI {
10 
11 class RTTLayer :
12  public OverlappedLayer
13 {
14  MYGUI_RTTI_DERIVED( RTTLayer )
15 
16 public:
17  RTTLayer();
18  virtual ~RTTLayer();
19 
20  virtual void deserialization(xml::ElementPtr _node, Version _version);
21  virtual void renderToTarget(IRenderTarget* _target, bool _update);
22 
23  void setTextureSize(const IntSize& _size);
24  void setTextureName(const std::string& _name);
25 
26 private:
27  MyGUI::ITexture* mTexture;
28  IntSize mTextureSize;
29  std::string mTextureName;
30  bool mOutOfDate;
31 };
32 
33 } // namespace MyGUI
MyGUI::RTTLayer::deserialization
virtual void deserialization(xml::ElementPtr _node, Version _version)
Definition: RTTLayer.cpp:28
MyGUI::RTTLayer::mTextureSize
IntSize mTextureSize
Definition: RTTLayer.h:28
MyGUI::RTTLayer::renderToTarget
virtual void renderToTarget(IRenderTarget *_target, bool _update)
Definition: RTTLayer.cpp:44
MyGUI::RTTLayer
Definition: RTTLayer.h:11
MyGUI::RTTLayer::mTexture
MyGUI::ITexture * mTexture
Definition: RTTLayer.h:27
MyGUI::RTTLayer::setTextureName
void setTextureName(const std::string &_name)
Definition: RTTLayer.cpp:85
MyGUI::RTTLayer::mTextureName
std::string mTextureName
Definition: RTTLayer.h:29
MyGUI::RTTLayer::mOutOfDate
bool mOutOfDate
Definition: RTTLayer.h:30
MyGUI::RTTLayer::setTextureSize
void setTextureSize(const IntSize &_size)
Definition: RTTLayer.cpp:65
MyGUI
Definition: RTTLayer.cpp:11
MyGUI::RTTLayer::RTTLayer
RTTLayer()
Definition: RTTLayer.cpp:13
MyGUI::RTTLayer::~RTTLayer
virtual ~RTTLayer()
Definition: RTTLayer.cpp:19