MyGUI  3.2.1
MyGUI_RenderTargetInfo.h
Go to the documentation of this file.
1 /*
2  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3  * Distributed under the MIT License
4  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5  */
6 
7 #ifndef __MYGUI_RENDER_TARGET_INFO_H__
8 #define __MYGUI_RENDER_TARGET_INFO_H__
9 
10 #include "MyGUI_Prerequest.h"
11 
12 namespace MyGUI
13 {
14 
16  {
17  public:
19  maximumDepth(0),
20  pixScaleX(1),
21  pixScaleY(1),
22  hOffset(0),
23  vOffset(0),
24  aspectCoef(1),
25  leftOffset(0),
26  topOffset(0)
27  {
28  }
29 
30  void setOffset(int _left, int _top) const
31  {
32  leftOffset = _left;
33  topOffset = _top;
34  }
35 
36  public:
37  float maximumDepth;
38  float pixScaleX;
39  float pixScaleY;
40  float hOffset;
41  float vOffset;
42  float aspectCoef;
43 
44  mutable int leftOffset;
45  mutable int topOffset;
46  };
47 
48 
49 } // namespace MyGUI
50 
51 #endif // __MYGUI_RENDER_TARGET_INFO_H__