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 15 struct MYGUI_EXPORT RenderTargetInfo 16 { 17 public: RenderTargetInfoRenderTargetInfo18 RenderTargetInfo() : 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 setOffsetRenderTargetInfo30 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_ 52